Apache2 File Permissions

Directories

find /var/www -type d -exec chmod 0775 {} + 

Files

find /var/www -type f -exec chmod 0664 {} +