I've setup wine on my Ubuntu 10.04 LTS server. The wine profile is setup here:
/home/myusername/.wine
Everything works fine. With a php script I'm trying to run wine which I've succeeded. The script looks like something like this:
Code: Select all
<?php
putenv("USER=myusername"); // no effect
putenv("HOME=/home/myusername");
exec('wine command ...');
?>
> sudo chown -R www-data:www-data .wine
Then the script works fine. I want to know if there's a way I leave ownership of .wine folder to myusername but still could access it via www-data?
the putenv("USER=myusername"); command doesn't have any effect.
Thanks for your attention.