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
Related Articles:
- WAMP SERVER error: localhost goes to www.localhost.com
- PhotoVisi – Create Collages from Your Photos in Few Clicks
- Take time off, Create your beat with MOG
- Domain Name Server.com Sold for $770,000
- Create Custom Comic Books with Apple’s New Invention
- Service Pack 2 for Vista & Server 2008 – Coming Soon







{ 42 comments… read them below or add one }
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
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
My site encounter this problem.
Thank you very much
thanks! this solved my problem
Didn’t work for me, even though the directories “wordpress” and “wp-content” were 755.
I solved it by creating the “uploads” directory in “wp-content” and made sure it was 755 (which is was by default for me).
Thanks, it solve my problem too. Just simply make it “wp-content/uploads”
Miscellaneous settings are correct
Permissions have been changed
Still not getting anywhere – my message is below
Unable to create directory /wp-content/uploads/2010/04. Is its parent directory writable by the server?
any other thoughts?
Thank you so much. I had no idea what was wrong. What a godsend!
This bullshit is driving me crazy. F*** you Wordpress.
thanks much! solved the issue asap! cheers
I face the same problem as mentioned in this article and trying to follow and fix it but it seems nothing happened. I wonder why. Is there other way to solve this?
I had this problem and spent several hours reading posts about with no luck. My permissions were right and the upload folder path was correct.
I realised that it was a SELinux issue for me. If you run SELinux then you will need to run the command below to allow apache (httpd) to execute particular PHP commands, including creating new files and folders. Here is the command:
Hope that helps someone else. This was driving me crazy and I was about ready to give up and uninstall WordPress. Glad it didn’t come to that.
Thank you so much for this information. It was driving me insane. I couldn’t work it out. As soon as I read your info I laughed. I couldn’t believe I didnt think of that myself. After almost 4days of trying to figure it out. Maybe I should have done a google search earlier (but us men don’t even stop to ask for direcetions). I never had the problem before so I just thought I missed something in the set up. Once again, thank you so much.
Kind Regards,
J P Baker
Australia.
You are most welcome Jason
This problem cropped up several months ago when I upgraded WP.
I have checked permissions, and they’re fine – set to 755. I also checked the file path in the WP config menu, and it’s fine.
The problem is that a new file (for the current month) can’t be created in the uploads/2010 folder. I see that the owner of the uploads folder is my username.
Any thoughts ?
I figured it out from another post.
Go back to the settings page. If the directory is listed as “{{/wp-content/uploads}}” change it top “{{wp-content/uploads}}” (get rid of the first slash) and it works.
I have done all of the edits above, I have my permissions set to 755 and then 777, neither will work. Looked to see if there was a / in front of wp-content, there wasn’t. I’m at my wits end with this.
This solved the problem I had when trying to upload an image. Another plus, is that it solved other problems I was having with my template.
Thanks!
{ 1 trackback }