Support » Fixing WordPress » File permissions

  • Hi,

    I have a new wordpress install and was having a few problems uploading a new theme and any media. After a bit of research I figured it was to do with file permissions. To solve the problem I changed the uploads directory file permission to 757 and everything else remained the same.
    My question is, is using 757 a safe / secure way of doing things? Will my site be at risk if I keep this permission because it would be a complete pain in the ass having to keep changing the file permission every time I wanted to upload new media?

    Thnaks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator kmessinger

    (@kmessinger)

    You should have 755 for directories and 644 for files.
    http://codex.wordpress.org/Changing_File_Permissions

    Usually after you change it and it works, changing the upload folder back still works.

    I have never heard of permissions being an upload problem with a new installation, but some hosts do have limits for file sizes. You might want to look into that more closely before things become convenient for hackers.

    I have never heard of permissions being an upload problem with a new installation,

    I think it might be a common issue in environments where files and directories may not be owned [and] group-owned by the user account. That probably results in WordPress not being able to create the upload directory.

    site:wordpress.org/support is the parent directory writable by the server

    Now I have heard, and I thank you!

    Thanks for reply guys, I have uploaded my theme and some images to the site now using the permission 757, but my question was is this safe? I can change back to 755 once they are all uploaded but it is just very annoying having to change the permission on the upload folder every time I want to add a new image?

    I think that might be what kmessinger had mentioned:

    Usually after you change it and it works, changing the upload folder back still works.

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