yasaman Hosseinzadeh
yasaman Hosseinzadeh

Reputation: 43

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?

Upvotes: 4

Views: 5968

Answers (2)

Niranjaysingh Rajput
Niranjaysingh Rajput

Reputation: 301

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

Upvotes: 2

Richelly Italo
Richelly Italo

Reputation: 1159

Change permission file to 755.

Upvotes: 2

Related Questions