How to use Wine from Apache/Php? - '/var/www' is not owned by you

后端 未结 7 1300
被撕碎了的回忆
被撕碎了的回忆 2020-12-18 06:55

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

相关标签:
7条回答
  • 2020-12-18 07:47

    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"

    0 讨论(0)
提交回复
热议问题