Correct file permissions for WordPress

Person wearing WordPress shirt in front of computer

File and folder permissions can be a problem sometimes and can cause errors when not set properly on your server.

For WordPress installations, you can set the proper permissions with the following commands:

Set all directory permissions:

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

Set all file permissions:

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