wordpress

Correct file permissions for WordPress

What permissions should I have for the following:

  • root folder storing all the WordPress content
  • wp-admin
  • wp-content
  • wp-includes

And then all the files in each of those folders?

Here is the correct file permissions for WordPress:
To set correct permissions you need to use these commands:
chown www-data:www-data -R * # Let apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--