• I have been looking at the various posts related to this topic but so far have not found a solution that works for me.

    Like many others, I have apparently successfully installed multisite only to stumble at the point of testing my image uploads. I continually get the error “Unable to create directory /var/www/html/wp-content/uploads/2011/11. Is its parent directory writable by the server?”

    Now by ‘parent directory’ I infer we are talking about wp-content. It was set to 755 and was owned by ’33’, whatever that is. The group was 33 as well. I changed this to 766 and 775 with no luck. I even tried 777 because I read that would work and you could change it back and it would still work. Neither happened in my case. I changed the group and the owner to root with no luck. I stopped and started Apache with no luck. I read about the different settings for each site under the network admin, but I also read that for the main site (the only one I have at the moment) the images are supposed to upload to ‘uploads’ and to blogs.dir for all the subsites, so I left those settings alone. I manually created uploads but that didn’t work either, although I did get a ‘crunching…’ message this time before I was told i could not create the directory. I even tried making ‘apache’ the owner, nothing has worked.

    I greatly appreciate your time and assistance in resolving this issue. Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Make sure you’re setting ALL the parent folders.

    That is, make sure uploads and 2011 are also set to 755 (or 777).

    ya, i just had the problem on my local server yesterday! ran this…

    (in /var/www$ ) chmod 777 -R .

    that means, like Ipstenu said, Recursive, make sure its setting all sub directories with the new permissions

    (maby not a good idea on a live site to set EVERYTHING to 777 though 😀 )

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    755 is better but some server setups require 777 :/

    Thread Starter natcolley

    (@natcolley)

    Well, I made all the folders manually. They are all set to 755. I still can’t upload, but now I have a different error message:

    “wordpress 2.jpg” has failed to upload due to an error
    The uploaded file could not be moved to /var/www/html/wp-content/uploads/2011/11.

    Note it no longer asks about the server being writeable. But this error message doesn’t tell me anything, like why or what to do about it.

    So I went back and switched all folders to 777, and now I can upload. Don’t know why the host/server setup would require this but short of moving (which I am thinking about for other reasons) I don’t think there’s much I can do about it.

    Thanks, Ipstenu.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    There MAY be a work around.

    Try putting this in your wp-config.php:

    define('FS_CHMOD_DIR', (0755 & ~ umask()));
    define('FS_CHMOD_FILE', (0644 & ~ umask()));

    I explain it in more details here: http://tech.ipstenu.org/2011/wordpress-dso-and-permissions/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘can't create a directory – uploads for multisite’ is closed to new replies.