john
john

Reputation: 567

cron job is not working

Hi I am using justhost web server and trying to set a cron job but it is not producing any output . I am using this command in the cpanel

php -q /home6/username7/public_html/folder/app/cron.php 

the name display on cpanel file browser is like home6 . any help will be appreciated . and how to check is this command is right or wrong.thanks in advance

Upvotes: 0

Views: 416

Answers (2)

nish
nish

Reputation: 1058

you should try this. ( give path to php command )

/usr/bin/php -q /home/username/public_html/yourfilename.php

Run a PHP file in a cron job using CPanel

Upvotes: 1

Hardik Solanki
Hardik Solanki

Reputation: 3195

Did you try with this :

Command to run for a PHP5 cron job:
/usr/local/php5/bin/php5 /home/username/public_html/cron.php

Command to run for a PHP4 cron job:
/usr/bin/php /home/username/public_html/cron.php

Upvotes: 1

Related Questions