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.
AssignUserID USERNAME GROUPNAME
3. Restart Apache and that’s all.
sudo service apache2 restart