0

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

john
  • 567
  • 8
  • 23

2 Answers2

1

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
Hardik Solanki
  • 3,153
  • 1
  • 17
  • 28
1

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

Community
  • 1
  • 1
nish
  • 1,008
  • 4
  • 17
  • 34