A currated repository of web design tools and resources that I use...

WordPress file permissions

July 27, 2016 - Wordpress
WordPress file permissions

Need a refresher on WordPress file permission?

In a nutshell…

If you aren’t on a shared server:

sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 660 wp-config.php
Your server might require:
sudo chmod 664 wp-config.php

If you are on a shared server:
sudo find . -type f -exec chmod 644 {} +
sudo find . -type d -exec chmod 755 {} +
sudo chmod 600 wp-config.php

Note: this assumes that you are in the folder containing your WordPress install. If you aren’t you can use this command:

find /path/to/your/wordpress/install/ -type d -exec chmod 755 {} \;


Categories: Wordpress  Tags: ,

Daniel Posted by

Leave a Reply

Your email address will not be published. Required fields are marked *