i cant install themes in wordpress

  • Posted July 20, 2013

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.



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

sorry no restart the server: <br>And don’t forget restart the server i lost hours for this XD <br> <br>only the service vsftpd

for gain acces to the /var/www/html folder <br> <br>sudo nano /etc/vsftpd/vsftpd.conf <br> <br>change the chroot_local_user to NO and enter the values at the end of file: <br>local_root=/var/www/html <br>file_open_mode=0755 <br>chmod_enable=YES <br> <br>And don’t forget restart the server i lost hours for this XD <br> <br>sudo service vsftpd restart <br> <br>i dont know this sentences <br> <br>file_open_mode=0755 <br>chmod_enable=YES <br> <br>is for privileges for chmod right? <br> <br>thanks

I did this <br> <br>sudo rpm -Uvh <br> <br>Install the php-ssh2 module: <br>sudo yum install php-pecl-ssh2 <br> <br>Reload Apache: <br>sudo service httpd reload <br> <br>Changing the ownership of the folder /var/www/html with this command: <br> <br>sudo chown -R YOURUSER:YOURUSER /var/www/html <br> <br>and fix the problem with ssh2 but i cant acces trought ftp XD <br> <br>I only accees to the home directory of the user <br> <br>thanks

Thanks for the answers <br> <br>Yes the user cant access to the folder the user is jailed in their home folder <br> <br>I follow this tutorials: <br> <br> <br> <br> <br>i dont know how to acces to the /var/www/html throught ftp with this user <br> <br>i think this may fix the problem <br> <br>Thanks again for the answers digital ocean is a great community

<b>“I follow all the steps for an installation of wordpress in Centos 6”</b> <br> <br>There’s more than one guide RE: installing WordPress on Centos. Which one did you follow?

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’. <br> <br>To ensure this, SSH into the server to your web root, and issue this command: <br> <br>chown -R apache:apache wp-content/uploads <br> <br>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. <br> <br>You may be able to change permissions in your FTP client as well.

It’s clearly stated. Has the user, who started the webserver rights to write to the folder /wp-content?