Hi,
I try to run a cron job in cpanel version 78 and PHP 7.1 but have no success.
When running it from a browser it works flawlessly.
example.com/template/temp/test.php
But inside cpanel nothing happens. I even not get any *error mail* ;-)
Have tried with these different versions of code:
/usr/local/bin/php -q /home/*****/public_html/weather/template/temp/test.php
/usr/local/bin/php /home/*****/public_html/weather/template/temp/test.php
/usr/local/bin/ea-php71 /home/*****/public_html/weather/template/temp/test.php
opt/cpanel/ea-php71/root/usr/bin/php /home/*****/public_html/weather/template/temp/test.php
Nothing at all happens. If I misspell or misconfigure any of above I got an *error mail*
I have also managed to get my ISP to provide me with logs from /var/log/cron.log
But I can't see any error in these?
May 25 01:12:01 cpsrv22 CROND[7802]: (*****) CMD (/usr/local/bin/php -q /home/*****/public_html/weather/template/temp/test.php)
May 25 01:14:01 cpsrv22 CROND[12153]: (*****) CMD (/usr/local/bin/php -q /home/*****/public_html/weather/template/temp/test.php)
Why does it not work, or something happens via cron but all work via browser?
What do I do wrong??
Btw ***** is my masked account name ;-)
All Best
Christian
I try to run a cron job in cpanel version 78 and PHP 7.1 but have no success.
When running it from a browser it works flawlessly.
example.com/template/temp/test.php
But inside cpanel nothing happens. I even not get any *error mail* ;-)
Have tried with these different versions of code:
/usr/local/bin/php -q /home/*****/public_html/weather/template/temp/test.php
/usr/local/bin/php /home/*****/public_html/weather/template/temp/test.php
/usr/local/bin/ea-php71 /home/*****/public_html/weather/template/temp/test.php
opt/cpanel/ea-php71/root/usr/bin/php /home/*****/public_html/weather/template/temp/test.php
Nothing at all happens. If I misspell or misconfigure any of above I got an *error mail*
I have also managed to get my ISP to provide me with logs from /var/log/cron.log
But I can't see any error in these?
May 25 01:12:01 cpsrv22 CROND[7802]: (*****) CMD (/usr/local/bin/php -q /home/*****/public_html/weather/template/temp/test.php)
May 25 01:14:01 cpsrv22 CROND[12153]: (*****) CMD (/usr/local/bin/php -q /home/*****/public_html/weather/template/temp/test.php)
Why does it not work, or something happens via cron but all work via browser?
What do I do wrong??
Btw ***** is my masked account name ;-)
All Best
Christian
Last edited by a moderator: