I am trying to run Wine from PHP to execute my custom cmd application.
It worked fine via ssh root but not on PHP.
Ok first I changed the owner for wine to www-data.
Code: Select all
sudo chown -R www-data:www-data .wine
Code: Select all
putenv("WINEPREFIX=/var/www/clients/client0/web5/web/");
Code: Select all
$test = exec('wine --version');
echo $test;
Code: Select all
$test = exec('wine /var/www/clients/client0/web5/web/test.exe -b test.png');
Cheers