PHP Error: Permission Denied when using (System , Exec proc_open) Commands

PHP 'system' Command Permission Denied Error

Error:

Get Permission denied when trying to run any external commands execution using (System , Exec proc_open...etc)

Solution:

File and folder should have the right permissions to run the php from the browser, Ex.: the parent folder should have write and execute permission to run 'rm'.
Scenario:

PHP file inside /var/www/html/magic/system_php.php , this file will delete another file in the same folder, for this case 'magic' folder should have the right permissions and not only the php file or deleted file.


Subscribe to
for video tutorials updates