The MU forums have moved to WordPress.org

Upload problem (2 posts)

  1. jackaldu
    Member
    Posted 12 years ago #

    Hey i have problem with uploading files. I get an error
    /httpdocs/wp-content/blogs.dir/1/files/ Couldn’t be created.

    When I looked in to it I find out that directory blogs.dir has a different Group owner (“apache”) then rest of directories. I found out also that if I create this directories myself files are uploaded but when they are created automatically I cant upload any files. Any ideas how to solve it?

  2. Ovidiu
    Member
    Posted 12 years ago #

    I guess you are using a nix system?

    I do it like this:

    chown -R your_user:apache_user /httpdocs/wp-content
    chmod -R 775 /httpdocs/wp-content

    that makes wp-content and all subfolders writeable by you and apache user, just replace your_user with your nix user id and apache_user with the id of apache (debian runs apache as www-data I dunno about others)

    this way apache has ful rights so you coudl actually use a theme editor, or a plugin editor or whatever (aka upload files) and apache is able to write..

    hope it helps

About this Topic