WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For all the folders and files.

Please give some explained answer.

share|improve this question
What do you mean under true ? Best? Required? Recommended? – Rarst Oct 9 '10 at 12:24
up vote 10 down vote accepted

All files should be writable only by your user account. So the correct permissions for files and directories are:

  • Directories: 755
  • Files: 644

You may want to secure some files:

  • wp-config.php: for maximum security, this file should be made writable by your user only or its group. This means 400 or 440 permission
  • .htaccess: 666 permission, so that WordPress can automatically generate rewrite rules for you
  • wp-content/: some plugins and themes may require write access to this directory. you will be prompted when necessary.
  • wp-content/themes/: 664 permission if you want to use the theme editor


share|improve this answer
That .htaccess permission looks menacing. – gmeben Apr 4 '13 at 18:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.