
Allow apache access to user’s folders
Usually I prefer using a virtual machine for this type of work, but with the recent projects I work on, it’s better to have apache installed on the machine I work on. So I had a stupid case, when I need to provide apache access to the directory I have my code in.
First off – I’m not saying that’s the best thing you can do! I’ts the thing that worked for me. So, that’s actually not that complicated. You just need to add apache2 to your user group:
usermod -a -G {group} www-data
Where group is the group, your user is part of. Then, just to be sure:
chmod g+rw {directory}
Where directory is the directory the files reside in. And voila – you can access your development files with apache!