Unable to create directory wp-content/uploads/2013/08. Is its parent directory writable by the server?

  • Posted August 11, 2013

Hello I have been trying to upload an image into my Wordpress dashboard without success. Every time I try to upload the image, I get an error like below:

Unable to create directory wp-content/uploads/2013/08. Is its parent directory writable by the server?

I am using CentOS 6.4 with latest Wordpress. My WP is located in /dir1/dir2/dir3/wordpress, and below this, wp-content has “uploads” directory and within this 2013/08 directories. Additionally, I had to create uploads/2013/08 as they did not exist in the original installation process following the instructions from DO. I have changed permission and that too did not work. Same upload error shows still.

This is what I do to see the error from Wordpress:

  1. Dashboard --> Pages --> ‘Add Media’
  2. Dashboard --> Media --> ‘Add New’

As mentioned, uploading an image shows the error stated above regardless of which image I choose. I have not had any problem installing themes or plugins, just the problem with image upload.

I have rebooted my host, also, and retired image upload without success.

My host has LAMP (CentOS) and WordPress.

Please could you suggest a fix for this kindly.

Thank you.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Run the following command as root: <br> <br><pre>chmod -R 777 /dir1/dir2/dir3/wordpress/wp-content/uploads</pre> <br> <br>That should fix it.

Isn’t 777 a bit of a security risk?

woops Im totally wrong on that one

for some reason you have to set public permissions to write in order to get it to work? Maybe this is opening up to security threats but honestly, I am just happy that I am finally able to write to the folder <br>

You simply open up filezilla and make sure all the file permissions are right on each folder that you want to write to.

sudo chown -R apache:apache /var/www/html/site_name/ <br> <br>That was it!!! I’ve spent many hours on this problem. Thank you!! <br> <br>For those of you where changing the directories to 777 does not work, then this may be your problem. I just replaced the path with my own and then: service httpd restart.

Changing permissions of the uploads folder to 777 isn’t really ideal. <br> <br>For me it was just a ownership issue. On centso I did the following, to change ownership of the site to Apache. <br> <br>sudo chown -R apache:apache /var/www/html/site_name/

@tom: Sorry, I’m not familiar with Windows Server. Try <a href=“”>this</a>.

I’m having the same Error when trying to change a Wordpress Theme or upload an image file…failed to upload due to an error Unable to create directory wp-content/uploads/2013/11. Is its parent directory writable by the server? <br>Im running WindowsServer 2008R2, MySQL 5.6.14, PHPMyAdmin 4.09 and Wordpress 3.7…Please help been looking for days to resolve this <br>

@andrewabarker: Even if you installed a fresh copy of wordpress it’s likely that you will still have permission/acl issues. <br> <br>It really depends on the OS you’re using. On Ubuntu you should be good to go if you set the correct permissions