For months now I have been trying to figure out why the user cron is not working, I am running CENTOS 7.3 x86_64 standard –WHM 60.0 (build 35) with PHP 5.5.38.
The user cron that was working fine up until Oct 2016 is:
*/2 * * * * php -q /home/user/public_html/hosting/cron/cronjob.php
In the email that is sent I get the following message:
This script is not intended to be invoked from a browser.
I can run the command in SSH as root or the user and it works just fine, I also use the following command in both to see what is happening and again it works just fine:
php -q /home/user/public_html/hosting/cron/cronjob.php --debug --verbose --force
I have also tried using /usr/local/bin/php -q /home/user/public_html/hosting/cron/cronjob.php and still the cron is not working. There are no error messages in /var/log/cron
Jan 25 07:02:01 server CROND[25143]: (user) CMD (php -q /home/user/public_html/hosting/cron/cronjob.php)
The directory permissions are 755 and the file permissions are 644
Scott
The user cron that was working fine up until Oct 2016 is:
*/2 * * * * php -q /home/user/public_html/hosting/cron/cronjob.php
In the email that is sent I get the following message:
This script is not intended to be invoked from a browser.
I can run the command in SSH as root or the user and it works just fine, I also use the following command in both to see what is happening and again it works just fine:
php -q /home/user/public_html/hosting/cron/cronjob.php --debug --verbose --force
I have also tried using /usr/local/bin/php -q /home/user/public_html/hosting/cron/cronjob.php and still the cron is not working. There are no error messages in /var/log/cron
Jan 25 07:02:01 server CROND[25143]: (user) CMD (php -q /home/user/public_html/hosting/cron/cronjob.php)
The directory permissions are 755 and the file permissions are 644
Scott
Last edited by a moderator: