Question

Unable to create directory wp-content/uploads/...

Hi, I installed a clean version of WordPress and I was uploading a theme and it says:

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

I read articles here with the same problem but the codes to fix this didn’t work. Probably because of the directories. How do I know were my directories are? I’m using Ubuntu 14.04 and WordPress.

Is th**ere any cpanel or something like that? Anyway… how do I give the right permissions (if that’s what it is) to my directories?

thanks

**Edit: ** I was seeing now that when I try to install from the store, it asks me for the host name, pass, FTP/SSH Username and Connection Type. I can install it through SSL, but I cannot upload since it doesn’t ask me for any credentials, I guess I have to allow the permissions?

How can I access my web through ftp since I haven’t configured it? I deployed ubuntu, install wordpress and that’s it. but what about ftp?


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.

Accepted Answer

I’m assuming you are using apache to host your WordPress site. You can set the permissions by running the command:

chown -R www-data:www-data /var/www/
chmod -R 766 /var/www/

You can use SFTP to connect to the server to access your server’s file. https://www.digitalocean.com/community/tutorials/how-to-use-sftp-to-securely-transfer-files-with-a-remote-server

It works now. Thanks!

Here’s a great solution for unable to create directory uploads

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.