Forums

Unable to create directory (13 posts)

  1. bwoolbright
    Member
    Posted 2 months ago #

    Hi,

    When I try to upload pics to my blog using the media uploader, this is the message I get, "Unable to create directory /home/content/b/w/o/bwoolbright/html/simply_mel/wp-content/uploads/2009/09. Is its parent directory writable by the server?" Has anyone ever had this problem and know how to fix it?

  2. samboll
    moderator
    Posted 2 months ago #

    wp-content/uploads/2009/09
    set chmod 777 on all of the above folders
    upload an image
    chmod folders back to 755
    should work from now on

  3. jackie
    Member
    Posted 2 months ago #

    I am having the same problem. I've set chmod to 777 and still no joy. What I have discovered is that when my WP 2.8.4 tries to create a new folder the user/owner or whatever you want to call it is apache. For all of the other folders I am the user. I deleted the "uploads" folder and all the sub folders (I had manually created subs). In Plesk I recreated the uploads folder and I am the user. Now when I try to upload a picture. WP creates the next folder - 2009 but it's user is apache and the next folder is not created. The error message is: "Unable to create directory /var/www/vhosts/mysite.com/httpdocs/blog/wp-content/uploads/2009/09. Is its parent directory writable by the server?"
    If I manually create the full path of folders and give them all chmod 777 then the message is "The uploaded file could not be moved to /var/www/vhosts/mysite.com/httpdocs/blog/wp-content/uploads/2009/09."
    Any ideas?

  4. rosbif
    Member
    Posted 2 months ago #

    I had this problem a while ago and started fiddling around with file permissions but it went away when I restored the default upload path statement in the upload settings (something like \uploads from memory - look for the note alongside the box). Good luck!

  5. AwengShah
    Member
    Posted 2 months ago #

    wp-content/uploads/2009/09
    I'm very new to wordpress can anyone show me step by step to upload image...have the same error

    how to use http://FTP..

  6. TRLocke
    Member
    Posted 2 months ago #

    Your solution is not working for me. I've set every level of the content directory to the 777 permission and nada so I changed them back. I don't even believe this is the first blog and image I've posted since the new Wordpress version. It just suddenly stopped working today for some reason.

    I've seen this same solution repeated on a dozen sites. It doesn't make sense that this would suddenly stop working.

    Please help.

  7. TRLocke
    Member
    Posted 2 months ago #

    Okay, guys. This note from Nabeel is all I needed to fix this. I didn't need to change permissions (I spent over an hour trying all that stuff last night and changing them back for safety). Also didn't need to contact my host or anything. There was simply a slash in front of the directory in the default section under Settings, Miscellaneous. Removed the slash and the pictures posted. Thanks Nabeel. Here's the note from him to another user:

    hello tan,

    please make sure it is “wp-content/uploads” and not “/wp-content/uploads”

    waiting to know if it was still not solved.

    My default had the slash in front. Amazing. I didn't need to change permissions or anything.

    TRL

  8. jackie
    Member
    Posted 2 months ago #

    Well, mine doesn't have the first slash, ALL the folders are at 777, etc, etc (see my previous post). What is the problem? I did find a solution but it seems like a really bad idea. If (at my web host) I set PHP safe mode to off everything works. There should be a solution other than this. Hopefully there are now enough clues that the smarter ones can understand the problem and offer the correct solution. Please?

  9. Neville.2
    Member
    Posted 1 month ago #

    hmmm I am new to wordpress and it seems that there are many many posts (under various topics) but all with the same issue and it is still not resolved. I have followed at least 6 supposed solutions and I still have the problem with "Unable to create directory /home/virtual/site122/fst/var/www/html/blog/wp-content/uploads/2009/09. Is its parent directory writable by the server?"
    Anyone???

  10. esmi
    Member
    Posted 1 month ago #

    Change the permissions on the wp-content directory to 766. If you still have problems, try 767 or 777. Once your uploads are working, change the permissions on wp-content back to 755 again and check that everything still works OK.
    http://codex.wordpress.org/Changing_File_Permissions

  11. Neville.2
    Member
    Posted 1 month ago #

    I have tried all that, still with the same result!

  12. Neville.2
    Member
    Posted 1 month ago #

    At last, I deleted the wp-admin and wp-includes files and reloaded them again (2nd time, the first time nothing had changed) but this time there was a / in front of the vp-content/uploads in Misc settings.
    I removed the / and hey presto!
    Both these were suggested as a fix but in seperate posts.

  13. jackie
    Member
    Posted 1 month ago #

    It is amazing to me that there are so many people with this problem. There is obviously a bug. I believe it has something to do with some of the web hosts setup. The only solution that worked for me is having the web hosting company set the PHP safe mode to off.

Reply

You must log in to post.

About this Topic