I’m trying to run a cron job on my SiteGround-hosted website, but it doesn’t seem to be executing as expected.
Here are the details:
What I’m trying to do:
I want to run a PHP scheduler command :
/usr/local/bin/php /home/customer/www/dhnahda.egfm.ae/public_html/dubai_health_token_system/artisan schedule:run > /dev/null 2>&1
- Every 30 minutes
- Tried both standard and custom intervals
What I’ve tried:
- Checked that the script runs fine via browser.
- Checked file permissions (it’s executable by the web server).
- Added logging to the script, but nothing is being logged.
- Tried absolute path and relative path.
- Added
#!/usr/bin/phpat the top of the script – still no luck. - No emails or error output from cron.
How can I debug this issue? Is there a way to see cron job logs on SiteGround, or is there something wrong with my cron setup?
Please help me urgently…..