4

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?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343

2 Answers2

2

Change permission file to 755.

Richelly Italo
  • 1,109
  • 10
  • 9
2

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