Manage Wordpress Privilege

 

Set site wide directory only permission  to 755

sudo find /var/www -type d -exec sudo chmod 755 '{}' \;

Set all file permission to 644

sudo find /var/www -type f -exec sudo chmod 644 '{}' \;

Set permission to 755 for some folder and files in /wp-content

sudo chmod -R 755 /var/www/wordpress/wp-content/uploads
sudo chmod -R 755 /var/www/wordpress/wp-content/plugins/wordfence/tmp
sudo chmod -R 755 /var/www/wordpress/wp-content/wfcache
sudo chmod -R 755 /var/www/wordpress/wp-content/wflogs

Set important config file permission to 400

sudo chmod 400 /var/www/wordpress/wp-config.php

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s