chihaz
By:
chihaz

Setting up FTPS on Ubuntu in order to use FTPS directly on wordpress

February 19, 2015 1.7k views

I've been having some trouble installing/updating/removing plugins to my wordpress site. Any time I want to make changes to my wordpress regarding plugins I am asked for my ftp login credentials. Now the credentials I use for accessing ftp via Filezilla work fine. However, when I try to use the same ones within wordpress, it gives me the following error message:

"ERROR: There was an error connecting to the server, Please verify the settings are correct."

So DO support I must set up FTPS, and have included a guide to doing this:

https://www.digitalocean.com/community/tutorials/how-to-configure-vsftpd-to-use-ssl-tls-on-an-ubuntu-vps

However, when I access console I arrive here:
https://www.dropbox.com/s/2jfpg5x8ecxwndj/console.JPG?dl=0

I have no idea what commands to use.

Please help

2 Answers

When Wordpress prompts you for FTP credentials it is because it found that your web files were not writable by it. This can be avoided completely by ensuring that your web files are owned by the same user that apache runs as. You can do this with the following command on an Ubuntu 14.04 droplet:

chown -Rf www-data:www-data /var/www/html

what if using nginx ? do I need to chown the whole directory starting from web root directory or will it be enough by chown-ing only themes/ directory ?

Have another answer? Share your knowledge.