Skip to content

Setting WordPress File/Folder Permissions in Linux Terminal

ArticleApacheLinuxWordpressCommand LineTerminal

To set the WordPress file and folder permissions in Linux terminal:

Go to the WordPress directory:

Terminal window
cd /path/to/wordpress/

Change all directories to 755:

Terminal window
sudo find . -type d -exec chmod 0755 {} \;

Change all files to 644:

Terminal window
sudo find . -type f -exec chmod 0644 {} \;