Centos 7 / WordPress – WordPress permissions

Last updated on April 9th, 2019 at 05:05 am

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 {} \;

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

chgrp -R wordpress /var/www/web01