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
If 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:

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





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!
Thanks Jyoti for visiting our blog. keep visiting for future reference.
A good article, I already solve the problem
very..very thank’s
hey, have the same problem. but..no results..doing the same what u said…
(( i just updated to the latest version of WP. help
hey @tan, have you recently shifted your hosting service or changed your directory for upload?
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 !
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!
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
nothing works with wordpress 2.8, permission change with 777
Hey nice fix, you got me up and running again in mere seconds. THANKS!
M
Thanks a lot. I was searching for the above problem, With your suggestions, i could able to upload the images successfully.
Thank you!
Nothing work for me too..
i use wordpress 2.8
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..
Thanks! A great help!
Thanks so much your tips worked great..
@Jim! You are welcome
thanks ,with your help i do it ok
JAZZ: Nothing worked until I read your post. Thanks!
Thank you, Mansoor! =)
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
[...] Troubleshoot: Unable to create directory+Is its parent directory writable by the server? [...]
Delete the “uploads” directory inside your wp-content that should fix the problem
!
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
Such a simple solution for such an annoying problem. Thanks for writing this article, probably saved me a million hours tinkering.
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?
It worked for me, I’ve just have to enter default settings i.e. “wp-content/uploads”. Thanks for sharing