Search code examples
permissionscroncpanel

Permission denied cron job in Cpanel


I set up a cron job in Cpanel according to backup but received this email alert: /usr/local/cpanel/bin/jailshell: /home/mahsanwe/cron_backups.php: Permission denied

How to fix it?


Solution

  • Please add the PHP command to be executed. It should be like this.

    * * * * * /usr/local/bin/php /home/mahsanwe/cron_backups.php
    

    You can also refer the below article for more understanding.

    https://manage.accuwebhosting.com/knowledgebase/3043/How-to-set-the-cron-job-to-run-a-PHP-script-in-cPanel.html