# crontab ajuste permisão de pastas
59 * * * * find /var/www/html/ -type f -exec chmod 644 {} \\;
59 * * * * find /var/www/html/ -type f -exec chmod 0644 {} \;
59 * * * * find /var/www/html/ -type d -exec chmod 0755 {} \;
59 * * * * chcon -t httpd_sys_content_t /var/www/html/ -R
sudo find /var/www/html -type d -exec chmod g+rx {} +
sudo find /var/www/html -type f -exec chmod g+r {} +
Ubuntu
sudo chown -R ubuntu:www-data /var/www
sudo find /var/www/html/ -type d -exec chmod 755 {} \+
sudo find /var/www/html/ -type f -exec chmod 644 {} \+
Centos
sudo chown -R apache:apache /var/www
sudo find /var/www/html/ -type d -exec chmod 755 {} \+
sudo find /var/www/html/ -type f -exec chmod 644 {} \+