Hi,
I have spend many days trying to get to the bottom of why my cron job wont run in cpanel. I am using a component called Acymailing and the cron jobhas stopped working. I don't know if it is a php thing (I am on php 8.0) or an issue with something on the server (I have a dedicated server).
This is my cronjob:
/usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_acym&ctrl=cron" > /dev/null 2>&1
I have followed an instruction on here to check what crons are set via the terminal and can see my cron jobs including the one that never runs within my site under the correct username.
The cronjob runs fine from the url it just wont run from the cpanel cronjob.
This is what I ran in the terminal based on a support suggestion in another thread:
[root@****** ~]# crontab -l -u mysite
SHELL="/usr/local/cpanel/bin/jailshell"
0 1,11 * * * /usr/bin/wget -O /dev/null "https://mysite.co.uk/blm/script_blm.php" > /dev/null 2>&1
*/10 * * * * /usr/bin/wget -O /dev/null "https://mysite.co.uk/index.php?option=com_easyblog&task=cronfeed" > /dev/null 2>&1
*/14 * * * * /usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_easydiscuss&task=cron" >/dev/null 2>&1
*/12 * * * * /usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_community&task=cron" > /dev/null 2>&1
0 0,12 * * * /usr/bin/php /home/mysite/public_html/components/com_osproperty/cron.php >/dev/null 2>&1
*/16 * * * * /usr/bin/php /home/mysite/public_html/components/com_jreviews_addons/queue/worker-many.php >/dev/null 2>&1
0,10 * * * * /usr/bin/php /home/mysite/public_html/jreviewscron.php > /dev/null 2>&1
0,10 * * * * /usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_acym&ctrl=cron" > /dev/null 2>&1
I am not sure what jailshell is that came back in the results. I also do recall seeing this in emails from the server:
/usr/local/cpanel/bin/jailshell: https://www.mysite.co.uk/index.php?option=com_acym: No such file or directory
Can anyone advise as to what could be wrong/how I get it working?
Kind regards
I have spend many days trying to get to the bottom of why my cron job wont run in cpanel. I am using a component called Acymailing and the cron jobhas stopped working. I don't know if it is a php thing (I am on php 8.0) or an issue with something on the server (I have a dedicated server).
This is my cronjob:
/usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_acym&ctrl=cron" > /dev/null 2>&1
I have followed an instruction on here to check what crons are set via the terminal and can see my cron jobs including the one that never runs within my site under the correct username.
The cronjob runs fine from the url it just wont run from the cpanel cronjob.
This is what I ran in the terminal based on a support suggestion in another thread:
[root@****** ~]# crontab -l -u mysite
SHELL="/usr/local/cpanel/bin/jailshell"
0 1,11 * * * /usr/bin/wget -O /dev/null "https://mysite.co.uk/blm/script_blm.php" > /dev/null 2>&1
*/10 * * * * /usr/bin/wget -O /dev/null "https://mysite.co.uk/index.php?option=com_easyblog&task=cronfeed" > /dev/null 2>&1
*/14 * * * * /usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_easydiscuss&task=cron" >/dev/null 2>&1
*/12 * * * * /usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_community&task=cron" > /dev/null 2>&1
0 0,12 * * * /usr/bin/php /home/mysite/public_html/components/com_osproperty/cron.php >/dev/null 2>&1
*/16 * * * * /usr/bin/php /home/mysite/public_html/components/com_jreviews_addons/queue/worker-many.php >/dev/null 2>&1
0,10 * * * * /usr/bin/php /home/mysite/public_html/jreviewscron.php > /dev/null 2>&1
0,10 * * * * /usr/bin/wget -O /dev/null "https://www.mysite.co.uk/index.php?option=com_acym&ctrl=cron" > /dev/null 2>&1
I am not sure what jailshell is that came back in the results. I also do recall seeing this in emails from the server:
/usr/local/cpanel/bin/jailshell: https://www.mysite.co.uk/index.php?option=com_acym: No such file or directory
Can anyone advise as to what could be wrong/how I get it working?
Kind regards
Last edited by a moderator: