Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

When deploying a wordpress project on a server , what are the rights to set for each folders and files of wordpress for it to be safe and fonctionnal?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

http://codex.wordpress.org/Hardening_WordPress#File_Permissions

/ - The root WordPress directory: all files should be writable only by your user account, except .htaccess if you want WordPress to automatically generate rewrite rules for you.

/wp-admin/ - The WordPress administration area: all files should be writable only by your user account.

/wp-includes/ - The bulk of WordPress application logic: all files should be writable only by your user account.

/wp-content/ - User-supplied content: intended to be writable by your user account and the web server process.

Within /wp-content/ you will find:

/wp-content/themes/ - Theme files. If you want to use the built-in theme editor, all files need to be writable by the web server process. If you do not want to use the built-in theme editor, all files can be writable only by your user account.

/wp-content/plugins/ - Plugin files: all files should be writable only by your user account.

Other directories that may be present with /wp-content/ should be documented by whichever plugin or theme requires them. Permissions may vary.

share|improve this answer
add comment

Your Answer

 
discard

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.