How to start wine in php shell_exec("wine ffmpeg.exe");
?
(ubuntu version 14 server)
install
sudo apt-get install wine -y
php5 code:
$cmd = "/usr/bin/wine /var/www/html/ffmpeg.exe upload/image.jpg"
shell_exec($cmd);
ffmpeg.exe
location:
/var/www/html/
wine is not starting?
Linux version of FFmpeg?, how to run PHPshell_exec()
?
Server domain is not on shared hosting
permissions on www-data
could be problem?
command ffmpeg successfull in terminal!
there is a permission issue, just tested and command is correct.
either ffmpeg.exe or wine have incorrect permissions.
Command (ffmpeg.exe)
chmod 755 ffmpeg.exe
chown www-data ffmpeg.exe
Command (/usr/bin/wine)
chmod 755 wine
chown www-data wine
sudo service apache2 restart
still not working, could be more 'wine' files to apply permissions to. I'm not able to output any error, and command to ffmpeg is correct from terminal the problem must be permissions