We recently upgraded to PHP 5.2.3 and are now running into some problems with a script we previously wrote. It is a script that uses FFMPEG to convert uploaded MPG or WMV files into FLV. Since files are uploaded by users, it uses cronjobs to check if a new file has been uploaded every minute and then converts. It uses the exec() function to run the FFMPEG commands.
It used to work fine, but after the upgrade does not any more. I have checked the more obvious problems, such as if PHP is in safe mode (it's not). I can still use PHP's exec() function to run simple commands like "ls", but cannot use it for "chmod" or "ffmpeg", which is what I need. I believe it is a permissions problem, and all I have to do is allow Linux user "videogam" (what the PHP script runs as) the correct permissions to execute the "chmod" and "ffmpeg" commands. Since I don't use Unix that much, I don't know if this is a PHP issue or a Linux one, nor how to do this.
I've searched all over the internet for a solution but I have yet to find one. Please let me know if this was confusing.
Thanks for the help.
EDIT: the only error returned using system() is the number "127" with no text description