Post Apache Linux Wordpress Command Line Terminal

Setting WordPress File/Folder Permissions in Linux Terminal

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

Go to the WordPress directory:

cd /path/to/wordpress/

Change all directories to 755:

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

Change all files to 644:

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