Friday, September 30, 2011

Setup Apache2 on Debian

Apache2 works great on Debian, but you need permissions set properly...

Add yourself to the www-data group.
sudo usermod -a -G www-data [username]
Change the group that owns /var/www/
sudo chgrp www-data /var/www/
Change the folder permissions

sudo chmod 2775 /var/www/