• Hi everyone,
    I would like to clarify one thing that concerns me.
    It is suggested in the WordPress docs that all files should have 644 permissions and all directories 755
    However, I read here http://codex.wordpress.org/Hardening_WordPress :

    find [your path here] -type f -exec chmod 644 {} \;
    You have to omit to use this command for /wp-includes/.

    Are there any files in /wp-includes/ that require other permissions?

    I read also at WP Forums about some exceptions but without any clear examples…
    So, lets clarify this – all files in WordPress directory and sub-directories should be 644 or there are some exceptions? And if they are then which files should have other permissions?
    Thank you in advance for any help.
    Chris

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Assign 766 recursive permissions to wp-content folder and 755 on wp-admin and wp-includes folder.

    Thanks,

    Shane G.

    It depends on the structure and setup upon which you are being hosted. Quite often 755 and 644 will work perfectly even in those directories. If you notice problems with your setup, then you can try increasing the permissions, but if things are working well for you, it would probably be best to leave them as 755/directories and 644/files

    Thread Starter cyber8

    (@cyber8)

    Well, the things are working well however, all .php files have permissions 755. They automatically get them like this after upload. So, I was thinking it will be more secure if I change them all to 644 like it is suggested. And I just wanted to make sure that everything will work after I do it…

    Yes. Everything will work. If, for some odd reason, it doesn’t work you can always switch them back.

    Thread Starter cyber8

    (@cyber8)

    Yes. Everything will work. If, for some odd reason, it doesn’t work you can always switch them back.

    True, thank you for the help! I changed all permissions to 644 and it works! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress File Permissions’ is closed to new replies.