Set file permissions for WordPress on CentOS 6.5 and Apache

  CentOS, General, Linux, Miscellaneous

SSH to the web server
cd into your wordpress forlder;

cd /var/www/html/mywpfolder

Make Apache the owner

chown apache:apache -R *

Change all sub-folder’s permissions to rwxr-xr-x (0755);

find . -type d -exec chmod 755 {} \;

Change all files’s permissions to rw-r–r– (0644);

find . -type f -exec chmod 644 {} \;

Leave a comment