i cant install themes in wordpress

Posted July 20, 2013 14.4k views
I follow all the steps for an installation of wordpress in Centos 6 all works fine but i cant install themes because wordpress not have the permissions i cant upload themes using the upload function of wordpress: Unable to create directory wp-content/uploads/2013/07. Is its parent directory writable by the server? this is the message and i upload the theme from ftp but i cant see the theme in my wordpress desktop i have a shared hosting and i upload the theme all work in these shared hosting. thanks

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.

Submit an Answer
7 answers
It's clearly stated. Has the user, who started the webserver rights to write to the folder /wp-content?
Make sure the wp-content/uploads folder and its contents are owned by the web server's service account, which if you're using Apache would be 'apache'.

To ensure this, SSH into the server to your web root, and issue this command:

chown -R apache:apache wp-content/uploads

This will change the owner and owner group of all files and folders in wp-content/uploads (including the uploads folder) and should let you upload files through the WP admin.

You may be able to change permissions in your FTP client as well.
"I follow all the steps for an installation of wordpress in Centos 6"

There's more than one guide RE: installing WordPress on Centos. Which one did you follow?
Thanks for the answers

Yes the user cant access to the folder the user is jailed in their home folder

I follow this tutorials:

i dont know how to acces to the /var/www/html throught ftp with this user

i think this may fix the problem

Thanks again for the answers digital ocean is a great community
by Etel Sverdlov
This tutorial explains how to install Apache, how to install MySQL, how to change the root MySQL password, how to install PHP, and how to see what libraries are available. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache ( the web server) , MySQL (the database), and PHP (the language). This tutorial is written for Centos.
I did this

sudo rpm -Uvh

Install the php-ssh2 module:
sudo yum install php-pecl-ssh2

Reload Apache:
sudo service httpd reload

Changing the ownership of the folder /var/www/html with this command:

sudo chown -R YOURUSER:YOURUSER /var/www/html

and fix the problem with ssh2 but i cant acces trought ftp XD

I only accees to the home directory of the user

for gain acces to the /var/www/html folder

sudo nano /etc/vsftpd/vsftpd.conf

change the chroot_local_user to NO and enter the values at the end of file:

And don't forget restart the server i lost hours for this XD

sudo service vsftpd restart

i dont know this sentences


is for privileges for chmod right?

sorry no restart the server:
And don't forget restart the server i lost hours for this XD

only the service vsftpd