On Thu, Feb 11, 2010 at 23:33, asmith <wineforum-user@xxxxxxxxxx> wrote: > I created another profile for wine in /home/username/.wine/ > > But my php still uses the root username to access, so it uses wine profile for root. > PHP should also not be running as root... > I think I narrowed down the problem. I have permission issues. > Wine can run the program itself. but when program.exe wants to start its processing, it fails creating its own temp files or accessing some files it needs on the system. > When running it directly in shell, it has full access to any file, that's why it works fine. But with php it doesn't. > Get the logs! You can try changing your method for running wine to something like: /bin/sh -c "<whatever you were running previously> > /tmp/wine_log.txt 2>&1" Then have a look at the log / post it here.... My wine_with_log script might also help.... http://forum.winehq.org/viewtopic.php?p=27438 > chowning wine profile doesn't seem to work. > How can I move my .wine to another folder? I dont' wanna create another one. Just move this working one to my public_html folder, so that maybe it works there? or just find the option in apache (I use nginx) to give permission to this one. > move it, set the WINEPREFIX environment variable to point to it...