i cant install themes in wordpress

July 20, 2013 7k 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
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:
https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-6
https://www.digitalocean.com/community/articles/how-to-set-up-vsftpd-on-centos-6--2
https://www.digitalocean.com/community/articles/how-to-install-wordpress-on-centos-6--2

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 http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

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

thanks
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:
local_root=/var/www/html
file_open_mode=0755
chmod_enable=YES

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

sudo service vsftpd restart

i dont know this sentences

file_open_mode=0755
chmod_enable=YES

is for privileges for chmod right?

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

only the service vsftpd
Have another answer? Share your knowledge.