Change Apache2 Virtual Host Running User on Ubuntu

In my development machine I have the project folders and it has been a nightmare to setup the permissions now that I use git because they want to change it into the Index and I don’t want it.

So in order to fix that I’m going to set the virtual host for my projects to run as my user.

1. Install apache2-mpm-itk and enable it.
sudo apt-get install apache2-mpm-itk
sudo a2enmod mpm_itk

2. Add the next tag into the VHOST configuration for your site, inside the VirtualHost tags.
<ifmodule mpm_itk_module>

3. Restart Apache and that’s all.
sudo service apache2 restart

I get this from this blog.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s