Support » Fixing WordPress » Best permissions to set

  • Resolved jeremycherfas


    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?


Viewing 6 replies - 1 through 6 (of 6 total)
  • This page:
    explains it pretty well.

    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.




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

    this will help, jeremy..

    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.

    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?

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

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Best permissions to set’ is closed to new replies.