Content feed Comments Feed

TechNama

TN is for Technology

Most often when you change your host and move your wordpress blog from one host to another, there are many small things that may create problems and may not make the moving experiance a pleasure. One of such problems is that you can not upload your image in your posts. Here is the error that you may receive:

Unable to create directory /xyz/public_html/wp-content/uploads/2009/05. Is its parent directory writable by the server?

What does this error actually mean? It means either the above given path is not correct where the server wants to write the image OR the server itself does not have the permissions (CHMOD) to upload your image?

Now first see if you have the correct path provided for the upload of content. Login to Wp-admin, click on Settings and then choose Miscellaneous option from the left menu

wordpress-misc-settingsIf you have moved from your old server, you would instantly know that you are using wrong path. Change the path now; most probably it should be wp-content/uploads (if your wp-content is in root directory). Save the changes and it should start uploading right away.

Now if you have corrected the path but still it is showing the problem you may consider revising permissions from any FTP client. Right click on Wp-content folder and then select ‘Properties/CHMOD’. You shall see the following window:

wp-content-properties

Make sure that you assign 755 as the permission value. Remember not to ever give 777 value as that has its own security risks. Once you save these settings, it should certainly work. Share your experience with us after solving the issue :)

  • Share/Bookmark
TechNama on Facebook

27 Responses to “Troubleshoot: Unable to create directory+Is its parent directory writable by the server?”

  1. Jyoti says:

    Hello Mansoor,

    I stumbled upon the ‘Unable to create directory’ error when trying to upload media in WP 2.71. Your article helped me resolve this irksome error without having to meddle with permissions. I must add that this is the most succinctly written troubleshooting article on this error. THANK YOU!

  2. Thanks Jyoti for visiting our blog. keep visiting for future reference.

  3. Darmawan says:

    A good article, I already solve the problem

    very..very thank’s

  4. tan says:

    hey, have the same problem. but..no results..doing the same what u said… :( (( i just updated to the latest version of WP. help

  5. Mansoor says:

    hey @tan, have you recently shifted your hosting service or changed your directory for upload?

  6. Bob says:

    Nothing worked for me .
    Maybe it’s not permission problem .
    Maybe it’s not htaccess problem . and
    Maybe it’s not wp-content/uploads url problem.

    It’s just a bug haven’t be fixed for me !

  7. Toby says:

    This post saved the day for me! I was trying to mess with my permissions, when the problem was that the ftp user was set incorrectly in that uploads folder screen.

    Thanks!

  8. MJK says:

    We are happy that our blog post helped you. Actually Mansoor.Ehsan wrote this post after we faced it ourselves after change of host.
    I went through your site and its good. Do not forget to subscribe to our RSS to stay in touch with TN

  9. Yusriel says:

    nothing works with wordpress 2.8, permission change with 777

  10. Matt says:

    Hey nice fix, you got me up and running again in mere seconds. THANKS!

    M

  11. Rambabu says:

    Thanks a lot. I was searching for the above problem, With your suggestions, i could able to upload the images successfully.

  12. Eric says:

    Thank you!

  13. JAZZ says:

    Nothing work for me too..
    i use wordpress 2.8

  14. JAZZ says:

    Actually i found solution…

    —>url blog/wp-content/uploads

    —>change the permission of your (uploads) directory to 777

    if you are using an FTP software like FTP pro or Filezilla right click the folder and select Properties..

    But otherwise, thank you for sharing this tip..

  15. Jonathan says:

    Thanks! A great help!

  16. Jim Smith says:

    Thanks so much your tips worked great..

  17. MJK says:

    @Jim! You are welcome

  18. bus says:

    thanks ,with your help i do it ok

  19. Chris says:

    JAZZ: Nothing worked until I read your post. Thanks!

  20. Pedro says:

    Thank you, Mansoor! =)

  21. husain says:

    i tried what u said above but still i m getting this thing – “Unable to create directory /home/xyz/public_html/wp-content/uploads/2009/12. Is its parent directory writable by the server?”

    & m unable to upload any images.

    Thanx in advance

  22. [...] Troubleshoot: Unable to create directory+Is its parent directory writable by the server? [...]

  23. Abi says:

    Delete the “uploads” directory inside your wp-content that should fix the problem
    !

  24. Helga says:

    Hi,
    I had this problem after moving my blog to another directory.

    I checked everyting: the miscellaneous settings are okay, the chmod is 755. It only works for me to upload after chmoding the uploads file to 777 which of course I don’t want…
    Any idea what else I can try? Can’t leave uploads at 777 of course (insecure) and chmoding everytime i upload a pic takes a lot of work..

    Thanks for any help!
    Helga

  25. Such a simple solution for such an annoying problem. Thanks for writing this article, probably saved me a million hours tinkering.

  26. Dominic says:

    I’ve just installed WordPress and have this problem. I’ve followed your suggestions to no avail. Is there anywhere I can get help before I bin this?

  27. Technorotic says:

    It worked for me, I’ve just have to enter default settings i.e. “wp-content/uploads”. Thanks for sharing

Leave a Reply



About Us

TechNama blog site has been launched on 27th April, 2009 by a team of three buddies who are all in love with Technology. TechNama brings you all the latest news, reviews and tips for technology, gadgets, mobiles, web and apps. If you wish to contact us, drop an email to mjk[at]technama.com. We will soon update our profiles here as well. In the mean time, don\'t forget to subscribe to TechNama Feed.