I add user with right permission in this file:
/etc/httpd/conf/httpd.conf
But shell_exec,system,exec can't run all command. For example I can go to root folder and get list of files and directory in /root folder, but when i use
shell_exec('ffmpeg');
nothing execute and nothing reply. What should i do?
ffmpegneeds a filename argument. What do you expect it to do with no argument?shell_exec()returns the output of the command. If you want to see it, you need to echo it withecho shell_exec('ffmpeg'). If you also want to see error messages, you should redirect stderr,echo shell_exec('ffmpeg 2>&1');shell_exec('ffmpeg 2>&1');issh: ffmpeg: command not found