Why are my cron jobs not running?
Cron jobs run scheduled tasks automatically. If yours are not firing, check these points.
- Check the schedule and command. In the DirhamHost panel at my.dirhamaday.ae, open Cron Jobs and confirm the timing fields and the command path are correct. A wrong path is the most common cause.
- Use the correct PHP path. For PHP scripts, call the right PHP binary, for example
/usr/local/bin/php /home/USER/public_html/script.php, using the full path to your file. - Check the output/errors. Have the job email its output, or redirect it to a log file, so you can see why it fails.
- Don't set it too frequently. Very frequent crons (every minute) can be limited; space them sensibly.
WordPress note: WordPress's built-in wp-cron only runs when someone visits the site, so low-traffic sites can miss scheduled posts or backups. The fix is to disable the pseudo-cron (define('DISABLE_WP_CRON', true); in wp-config.php) and add a real cron job that calls wp-cron.php on a schedule.
If a job still won't run after checking the path and command, contact our 24/7 team on WhatsApp +971 58 553 6767 or support@dirhamaday.ae with the exact cron line and we will test it with you.
Still need a hand? Our UAE-based team is here 24/7.