![]() | 1 | initial version |
I searched more and more and got some progress. Would love to hear if this is the best solution (at least it works):
sudo chown apache:apache -R /var/www
# cd to /var/www !!!
sudo find . -type f -exec chmod 0644 {} \;
sudo find . -type d -exec chmod 0755 {} \;
sudo chcon -t httpd_sys_content_t /var/www -R
#Make future folders/files the right permissions and make them owned by Apache
sudo chgrp apache /var/www
sudo chmod g+s /var/www