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

July 19, 2016 791 views
WordPress Linux Basics Ubuntu

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?


*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?

1 Answer
MDS July 19, 2016
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.

by Justin Ellingwood
SFTP is a secure way to transfer files between local and remote servers. Much more secure than FTP, this protocol uses an SSH tunnel to establish a connection and uses encryption to transfer files in an interactive session.
  • Thank you! The permissions worked!
    Nice guess for the appache, yes, I followed the initial setup haha. Thanks bro

Have another answer? Share your knowledge.