PHP 'system' Command Permission Denied Error
Get Permission denied when trying to run any external commands execution using (System , Exec proc_open...etc)
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'.
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.