Hi everyone,
I hope you're all doing well. I'm reaching out because I've been struggling all day to get my cron job to work, but unfortunately, I haven't had any luck.
I've tried the following command:
* * * * * cd /home/xxxxxxxxxx/domains/MY-WEBSITE/public_html/SUBDOMAIN; /opt/alt/php83/usr/bin/php -f cron.php > /dev/null 2>&1
After contacting Hostinger support, I also attempted this alternative:
* * * * * cd /home/XXXXXXX/domains/MY-WEBSITE/public_html/SUBDOMAIN && /usr/bin/php -f cron.php > /dev/null 2>&1
Despite my efforts, the cron job still isn't executing as expected. I'm currently on a shared server, so I'm not sure if there are any specific limitations or configurations I need to be aware of. By there way, I have other cron jobs on the server that are working fine using both wget and curl.
If anyone has any suggestions or insights on what I might be doing wrong, I would greatly appreciate your help!
Thank you in advance! Steve
I hope you're all doing well. I'm reaching out because I've been struggling all day to get my cron job to work, but unfortunately, I haven't had any luck.
I've tried the following command:
* * * * * cd /home/xxxxxxxxxx/domains/MY-WEBSITE/public_html/SUBDOMAIN; /opt/alt/php83/usr/bin/php -f cron.php > /dev/null 2>&1
After contacting Hostinger support, I also attempted this alternative:
* * * * * cd /home/XXXXXXX/domains/MY-WEBSITE/public_html/SUBDOMAIN && /usr/bin/php -f cron.php > /dev/null 2>&1
Despite my efforts, the cron job still isn't executing as expected. I'm currently on a shared server, so I'm not sure if there are any specific limitations or configurations I need to be aware of. By there way, I have other cron jobs on the server that are working fine using both wget and curl.
If anyone has any suggestions or insights on what I might be doing wrong, I would greatly appreciate your help!
Thank you in advance! Steve
Comment