Everything in /var/www owned by root user and www group:

sudo chown -R root:www /var/www

Set /var/www directory permission to owner rwx, group rwx, and everyone else to r-x

sudo chmod 2775 /var/www

Set all current and future directory permissions to owner rwx, group rwx, and everyone else to r-x

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

Set all current and future file permissions to owner rw-, group rw-, and everyone else to r–

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

Restart Apache

sudo service httpd restart