Apache should be running as the www-data user unless you've changed the user that it's running under. You can view this by checking these two files...
Code:
root@svr-cc-web:/etc/apache2# cat /etc/apache2/envvars | grep APACHE_RUN_USER
export APACHE_RUN_USER=www-data
root@svr-cc-web:/etc/apache2# cat /etc/apache2/apache2.conf | grep APACHE_RUN_USER
User ${APACHE_RUN_USER}
You shouldn't operate with 775 permissions on /var/www and I really like to let root own /var/www and have www-data:www-data be the user and group on the applications inside /var/www.
Bookmarks