Report this

What is the reason for this report?

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

Posted on March 8, 2016

I have set up a droplet running ubuntu 14.04X64 with Sentora Control Panel. Within the sentora control panel, I have created FTP accounts. I uploaded wordpress via FTP and successfully installed on my droplet.

I attempted to upload a theme from my laptop via the wordpress Add Themes uploader. The theme upload is failing and I am getting the error below:

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

I observed the same thing when attempting to install a theme from the wordpress theme repository.

The /wp-content, /wp-content/themes and /wp-content/uploads folder’s permission is originally 755, I changed this to 777 and the theme upload succeeded each time.

What is a more practical way of resolving this issue as file permission 777 is a big security risk and not future proof?



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!

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.

This Tutorial may help you to Solve unable create wordpress directory Thanks

This is typically an issue with file and directory ownership more often than permissions. Based on the Sentora configuration for your php deployment, verify with a phpinfo page what user the php code is executing as.

Once you know the system user, be sure your ftp account is configured to upload the files as that user. To address the issue as is, typically you will update the ownership of the base path using “chown” to match that user, so that the php execution ( running as that user ) has the permission to read, write and create additional paths under it. The base path being the document root your application is installed at based on the web server configuration.

Hope that helps.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.