0

We are using AWS for WordPress site hosting. Now I want to know what will be the correct file permissions for WordPress files?

  • Does this answer your question? [Correct file permissions for WordPress](https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress) – FluffyKitten Aug 20 '20 at 08:19

2 Answers2

0

The article on Hardening WordPress also has a chapter about the file permissions you should set.

Basically it's 755 for folders and 644 for files, speaking in chmod() terms.

flomei
  • 860
  • 1
  • 11
  • 36
0

These are recommended permissions from the community.

  • wp-content 755
  • wp-content 755
  • wp-includes 755
  • All .php files 644
  • All folders 755
  • wp-config.php (public_html folder) 400/440
  • index.php (public_html folder) 444/644

You can notice wp-admin is not included in the above list. The reason is, experts recommend wp-admin should be outside of the www/htdocs/public_html.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Sajid Javed
  • 452
  • 8
  • 14