How to change the Apache 2.2 user and group

  • 3535361
  • 03-Mar-2008
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (OES 2)
Novell SUSE Linux Enterprise Server 10 Service Pack 1
SLES 10
OES 2
Apache 2.2

Situation

Apache 2.2 on SLES 10 uses the default user wwwrun and group www to perform apache tasks. In some cases, a user may want to change this user and group.

Resolution

Edit the /etc/apache2/uid.conf file. In this file you will find 2 lines:
User wwwrun
Group www
Change these values to a valid system user and group and restart apache with the command "rcapache2 restart"