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

February 19, 2015 1.5k 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:

However, when I access console I arrive here:

I have no idea what commands to use.

Please help

1 Answer

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
Have another answer? Share your knowledge.