cron

r3n3gad3

Verified User
Joined
Aug 11, 2004
Messages
19
why doesn't my cron job work?

I need to set a path to my script, DA standard says:
/home/r3n3gad3/

So that means that the path to my script is:
/home/r3n3gad3/domains/r3n3gad3.nl/public_html/test/cron.php

?

Is this correct?

And if not, what is it?
 
Your path is right, but what are you trying to do? Create a cron job to run cron.php?

If so have you set up the cronjob properly in your user interface?

If so, and it doesn't work, then if you're a user without shell access to the server you'll have to ask your hosting company to help you debug your server by trying to run it from the command line.

Jeff
 
maybe in the cron job you need to run your php page via curl

e.g.

/usr/local/bin/curl http://domain.com/dosomething.php
 
Last edited:
On most OS'es the ENVIROMENT is pretty limited for users. So to fix your problem you'll have to use complete path's like:

/usr/local/bin/php /home/r3n3gad3/domains/r3n3gad3.nl/public_html/test/cron.php


Should do the trick.
 
Back
Top