WordPress.org

Ready to get started?Download WordPress

Forums

File Permission CHMOD Help - .htaccess and /wp-content (7 posts)

  1. gariben
    Member
    Posted 5 years ago #

    What is the proper file permission for the following files and folders?
    I've search the forum and read http://codex.wordpress.org/Hardening_WordPress and still don't really understand.

    755? 666? 777? 644?

    .htaccess
    /public_html/ (the root folder for the wp install)
    /wp-content/
    /wp-content/uploads
    /wp-admin/

    Can you let me know the chmod# for the files and folders?

    Is there any other files and folders that I should pay attention to?

    Thanks,
    Mike

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    The Codex is your friend. Check out Changing File Permissions.
    Good luck.

  3. gariben
    Member
    Posted 5 years ago #

    Hi,

    I have read that page too. Don't understand by "It should be writable only by your user account" What is the permission level for User account?

    644? 755? 666

    .htaccess
    /public_html/ (the root folder for the wp install)
    /wp-content/
    /wp-content/uploads
    /wp-admin/

    Can you let me know the chmod# for the files and folders?

  4. Rok
    Member
    Posted 5 years ago #

    .htaccess ==> 644
    /public_html/ ==> 755
    /wp-content/ ==> 755 or less
    /wp-content/uploads ==> 755 or less
    /wp-admin/ ==> 755 or less

  5. Anonymous
    Unregistered
    Posted 5 years ago #

    You basically got three types of users on a server. Owner, Group, Other (public). These assign rules for security. You got three kinds of permissions: Read, Write, Execute. These three have "point values" that make up the number. Read = 4, Write = 2, Execute = 1. Search the internet for details on the whole thing in general as the codex won't do you any good (with or without luck).

    Once you understand all that, then you will under stand the permissions. Even what I wrote just now, I still don't now for sure all the time and get confused. Normally, your server should be set and nothing needs tweaking.

    As it stands, WP is really screwy right now so it's not a good time...

  6. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    ALL directories = 755
    ALL files (including your theme files) = 644
    .htaccess = 644 is good, but go for 444 if install could handle it. chmod to 777 when you need to update permalinks or htaccess rules then chmod back to 644/444 right away after you're done.

    If you're using FileZilla, there's a good chmod tutorial there on fast chmodding with graphics near middle of post although the tutorial starts off fixing some install problems.

    Good luck.

  7. miguknamja4
    Member
    Posted 5 years ago #

    How should xmlrpc and htaccess be set, to use Flickr and ScribeFire?

Topic Closed

This topic has been closed to new replies.

About this Topic