Reputation: 5113
I have installed ffmpeg and I can run it perfectly find when using the "ffmpeg" from the command line. But I am trying to run ffmpeg from PHP and when I use the bare ffmpeg command, I get "sh: ffmpeg: command not found". So instead of just the bare ffmpeg command, I used the whole folder location /home/vibe/public_html/libraries/ffmpeg/ffmpeg but now I get the "no such file or directory" error.
Anyone know how I can solve this? Much appreciated.
Upvotes: 0
Views: 8679
Reputation: 39386
I'd expect that your webserver doesn't have read permission for at least one of the files or directories in that path. The bad, shotgun solution for that would be:
chmod -R 777 /home/vibe/public_html
This would at least allow you to trivially verify that permissions are in fact your problem.
Upvotes: 0
Reputation: 4199
You have to adapt the configuration of your webserver... normally ffmpeg and stuff like that is installed in the same directory, for example /something/bin. So everytime you want to execute something in the shell, the OS will look into the /bin-folder. If ffmpeg is installed somewhere else (obviously it is in your case), you have to add the path to your path-variable, so the OS knows that it has to look there, too. Beside this, you should not install executables in your public_html folder!
Upvotes: 1