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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.