FRIHOST • FORUMS • SEARCH • FAQ • TOS • BLOGS • COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to get a php script working under a cron job?





powers1983
I have tried to get a cron job running but nothing I put in the command box in Direct Admin is working. I have searched and tried every suggested syntax but they don't seem to work:
Code:

/usr/bin/php -q /home/powers19/domains/cluster.frih.net/public_html/manager/update.php


but that doesn't work.

I can run the script through the browser and it does what its meant to, but nothing happening with any cronjobs.

Cronjobs are marked as ON in the information bit and I read somewhere that they are on by default so I'm guessing that I have something written wrong.

I have it in the public_html folder just until I get it working and then will move it.

Any help would be much appreciated.

David.
fromegame
Code:
/usr/local/bin/php -q /home/powers19/domains/cluster.frih.net/public_html/manager/update.php
powers1983
fromegame wrote:
Code:
/usr/local/bin/php -q /home/powers19/domains/cluster.frih.net/public_html/manager/update.php


It works now thank you.

I seem to have tried everything except for the right php path.

David.
traxion
maybe an old topic

but when i've found it earlier, i've got have saved 30 min of searching online on how to set the cronjob right Very Happy

good think that Frihost saves the old topic:S
Related topics
Phoenix free PHP scripts
error in my PHP script
Cron Job to Backup MySQL Database
cron job
Cron Jobs
Can l get a css document to
[PHP] Running Cron Jobs Via PHP Script
Simple PHP script not working
Cron job
Cron job and browser output question
ΏCron Job en Frihost?
PHP script to create email addresses/ftp accounts/etc...
Run a php Script with a Cron Job
[Help] php script to post to twitter
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.