Apache run under Multiple User

Posted: April 30, 2011 in Debian

1. Install apache2-mpm-itk

aptitude install apache2-mpm-itk

2. After Create user

adduser WebAdmin

**force user to use apache group

usermod -g www-data WebAdmin

3. Add this line on vhost

<IfModule mpm_itk_module>

AssignUserId WebAdmin www-data

</IfModule>

4. Chown folder to user

chown WebAdmin:www-data /var/www/web/* -R

5. Reload apache

service apache2 reload

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s