WordPress.org

Ready to get started?Download WordPress

Forums

WordPress File Permissions (6 posts)

  1. cyber8
    Member
    Posted 4 years ago #

    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

  2. Shane G
    Member
    Posted 4 years ago #

    Hi,

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

    Thanks,

    Shane G.

  3. bh_WP_fan
    Member
    Posted 4 years ago #

    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

  4. cyber8
    Member
    Posted 4 years ago #

    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...

  5. bh_WP_fan
    Member
    Posted 4 years ago #

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

  6. cyber8
    Member
    Posted 4 years ago #

    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! :)

Topic Closed

This topic has been closed to new replies.

About this Topic