Centos 7 / WordPress – WordPress permissions

Last updated on May 28th, 2020 at 03:15 pm

Reset permissions of files to 664:

find /var/www/web01 -type f -exec chmod 664 {} \;

Reset permissions of directories to 755:

find /var/www/web01 -type d -exec chmod 755 {} \;
chown apache:apache /var/www/web01

Reset the group to the wordpress group (or whatever group makes sense for you)

chgrp -R wordpress /var/www/web01




sudo chown -R apache:apache /var/www
sudo find /var/www -type d -exec chmod 770 {} \+
sudo find /var/www -type f -exec chmod 640 {} \+




sudo chown -R apache:apache /var/www
sudo find /var/www -type d -exec chmod 775 {} \+
sudo find /var/www -type f -exec chmod 640 {} \+



sudo chown -R apache:apache /var/www
sudo find /var/www -type d -exec chmod 777 {} \+
sudo find /var/www -type f -exec chmod 640 {} \+