• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Forum Membership

Forum Membership

setup cron to execute PHP file

Started by Harry, March 19, 2009, 07:48:17 PM

Harry

I am trying to setup a cron job for my web site but it doesn't seem to be working. I have set it as follow:

usr/local/bin/php /home/xxxxxxx/public_html/xxxxxx/cron.php

Am I missing something?

Thanks,

Harry

Kailash

#1
The cron seems to work fine but you forgot / in the cron command. It should be:

/usr/local/bin/php /home/xxxxxxx/public_html/xxxxxx/cron.php

You can also try the following cron to execute php file:

php -q /home/xxxxxxx/public_html/xxxxxx/cron.php

Kailash

Harry

hmm... I was not aware it was the mistake. Now, cron job is working fine.

Harry