3

apache2 seem to start new processes with www-data user. How could I make it start new processes with some other user? ubuntu 11.04 by the way.

ren
  • 337
  • 1
  • 10

2 Answers2

3

This can only be changed globally (not for single processes or vhosts) with the statements User and Group in /etc/apache2/apache2.conf. For CGI's, you can use the suexec feature to spawn processes with another user id.

Sven
  • 98,649
  • 14
  • 180
  • 226
2

Open the /etc/apache2/apache2.conf file and change User and Group to whatever user, group you want.

quanta
  • 51,413
  • 19
  • 159
  • 217