I need to run a windows command line tool from a php script on my Debian server. For that, I\'m trying Wine. Invoking wine and the tool via terminal works fine: \"$ wine too
Or... you could skip the whole sudo thing. Start wine to generate a config file in your home directory, then ask the admin to do a chown www:users .wine on your wine config files.
Apache should now have the needed rights to run wine using your config file.
The www user seems to have another name on linux...
exec("HOME=/usr/home/myuser /usr/home/myuser/bin/wine /usr/home/myuser/test.exe"