Question

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

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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