• What is the proper file permission for the following files and folders?
    I’ve search the forum and read https://codex.www.ads-software.com/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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The Codex is your friend. Check out Changing File Permissions.
    Good luck.

    Thread Starter gariben

    (@gariben)

    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?

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

    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…

    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.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘File Permission CHMOD Help – .htaccess and /wp-content’ is closed to new replies.