Use absolute paths for filenames when running PHP scripts in cron jobs
Writing this down after spending a few hours figuring what went wrong…was adding a cron job to the root crontab for a PHP script which ran fine by itself but not so when executed by the cron job. Entry in root crontab (sudo crontab -e): # Run PHP script every 3 hours between 9am – …
Continue reading “Use absolute paths for filenames when running PHP scripts in cron jobs”