1

I have many VirtualHosts for different users. How can I set UID for PHP process per VirtualHosts?

Sannis
  • 13
  • 2

2 Answers2

3

If you are using a Linux distribution then you can probably use suPHP. suPHP allows you to run php scripts with the UID/GID of the php file that is being processed.

You will have to ensure that each of your vhosts has a their own UID/GID.

user9517
  • 114,104
  • 20
  • 206
  • 289
1

You could run the php scripts as if they were a CGI and use SuexecUserGroup from mod_suexec to specify which user to run the script as.

pyasi
  • 500
  • 2
  • 5