Hey all, I have set up a cron job through the CPanel control centre to run a local PHP file. The only problem is I get this error message:
/bin/sh: line 1: /home/guitar/public_html/cronjobs/remove.php: Permission denied
Please help!! 😕
make sure you cron command looks like this: php -f /home/guitar/public_html/cronjobs/remove.php
have you set the apropriate permissions on that script ? chmod a+rx /home/guitar/public_html/cronjobs/remove.php
chmod a+rx /home/guitar/public_html/cronjobs/remove.php
Yeah the first pots fixed it thanks.