Hi,
I have a problem getting my cron jobs to run. I have searched this forum for the answer and also googled it and tried all the suggestions there.
Basically I have a couple of php files that need to be run via cron. These files run correctly if I enter the following in the url:
https://www.mysite.com/myscript.php
When I try to create them in Cron Jobs they do not execute. So far I have tried:
/usr/bin/php /home/mysite/public_html/myscript.php
/usr/bin/php -f /home/mysite/public_html/myscript.php
/usr/bin/php -q /home/mysite/public_html/myscript.php
https://www.mysite.com/myscript.php
php -f /home/mysite/public_html/myscript.php
None of them seem to work. Could it be that I need to enable something somewhere on WHM Easyapache to get them to work?
Any advice would be greatly appreciated
Kind regards
I have a problem getting my cron jobs to run. I have searched this forum for the answer and also googled it and tried all the suggestions there.
Basically I have a couple of php files that need to be run via cron. These files run correctly if I enter the following in the url:
https://www.mysite.com/myscript.php
When I try to create them in Cron Jobs they do not execute. So far I have tried:
/usr/bin/php /home/mysite/public_html/myscript.php
/usr/bin/php -f /home/mysite/public_html/myscript.php
/usr/bin/php -q /home/mysite/public_html/myscript.php
https://www.mysite.com/myscript.php
php -f /home/mysite/public_html/myscript.php
None of them seem to work. Could it be that I need to enable something somewhere on WHM Easyapache to get them to work?
Any advice would be greatly appreciated
Kind regards