php scripts cannot see or access binary files

TechBill

Member
Aug 7, 2011
15
1
51
I had a video cms script on a website that uses ffmpeg and some other binaries to encode video into a web friendly format. It stopped working so I went to look at the web backend and it give me a warning that it cannot locate the ffmpeg binary even the path /usr/bin/ffmpeg is correct.

I ssh'ed in and I was able to encode videos using ffmpeg from shell so did cpanel add some type of security preventing the php script to use binary files ?

How do I adjust the setting to allow some binaries to be executed by php scripts?

I own the host and have full WHM / Shell access

Please advise

Thank you
 

TechBill

Member
Aug 7, 2011
15
1
51
I read the doc and enabled the PHP-FPM but I tried to configure it to allow php to exec some binary files however it still could not see the binary file. I assume that PHP-FPM just put it in garden or jail?