• Hi, I am moving some blogs to a new server and ran across this possible annoyance/problem. When I download the wordpress installation from the old server and upload to the new server using FTP, all file permissions are set to 644.

    I was having some trouble for the first blog that I moved, so I went through by hand with cPanel File Manager and manually changed every single permission to 755. Ugh! My first blog is now working, but I am not looking forward to doing the same thing with my other blogs.

    Is 755 necessary for WordPress files? If it is, is there a simple way to change file permissions for all files at once (including child directories etc) with cPanel? Going into each directory manually was a big pain.

    Thanks for any advice!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is 755 necessary for WordPress files?

    No it isnt.

    directories = 755
    files = 644

    Ryan S

    (@ryan_accuwebhosting)

    only some files and directories need 755 permissions, not all. You can refer this:

    http://codex.wordpress.org/Changing_File_Permissions

    I don’t think there is any shortcut way to change the permission of files other than manually.. You can consult your host..

    Somehow all my files got set to 777. Not my doing so I assume there was a problem on my ISP’s free web space. The server prevents access saying files shouldn’t be group writable (correct!) so I want to set the files to something sensible that works.

    I spent ages setting everything to what whooami suggests (755/644) but it’s not sufficient. Some files need to be executable, but which ones? All .php or what?

    The codex page ryan refers to is more concerned with understanding permissions and how to change them and not much about what’s correct. Its advice seems mostly ‘trial and error’ for write permission and little about which need executable permission. Does it even mention .php files? (There’s also an error: examples of 677 can’t mean two different things.)

    So, do all .php files need X, or what? I tried with just the top-level index.php and it displayed normally but I kept seeing other things with problems, eg I can’t post or add a comment.

    Any help will be most welcome.
    Thanks.

    OK, I may have solved it.

    For anyone else who needs to know, I added all 3 execute permissions for all .php files in the top level and wp-admin directories and seems OK so far.

    If anyone knows better, please say.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘File permissions after FTP upload’ is closed to new replies.