WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Best permissions to set (7 posts)

  1. jeremycherfas
    Member
    Posted 8 years ago #

    I had a little trouble ungrading yesterday (thanks to all who helped) and in sorting it out changed some permissions to 777. Now I'd like to know, is there a guide to which folders and files should have what permissions?

    Obviously some need to be 777, but what should the others be?

    Thanks

  2. Samuel B
    moderator
    Posted 8 years ago #

    This page:
    http://codex.wordpress.org/Changing_File_Permissions
    explains it pretty well.

  3. Blogs-About
    Member
    Posted 8 years ago #

    If your server runs phpsuxec.. then all php files should be 644. Everything else should be 755 or lower. No directories should be set to 777. 777 is world writable and not a good idea at all.

    As long as you have 644 then they are executable by the owner which under phpsuxec php runs as the account owner.

    Unfortunately I dont run my servers without phpsuexec so couldnt tell you the perms needed there.

  4. whooami
    Member
    Posted 8 years ago #

    the link you pasted, sam, doesnt answer his question. he knows how to chmod, hes already done it :P.

    this will help, jeremy..

    http://www.tamba2.org.uk/wordpress/chmod/

    btw, nothing NEEDS to be chmod 777 for your blog to work normally, and as podz points out on the linked page, and the previous poster said, its a bad idea.

  5. jeremycherfas
    Member
    Posted 8 years ago #

    Many thanks. I've changed all the folders, but possibly not all the files. I need something better than fugu for doing it, and more time.

    Interestingly, I noted that some folders -- eg wp-content/uploads -- have a different owner, and will not actually let me change permissions.

    Should I change Owner on those?

  6. Blogs-About
    Member
    Posted 8 years ago #

    Absolutely.
    All files and folders under your public_html folder should be owned by your account and your group account name.

  7. jeremycherfas
    Member
    Posted 8 years ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic