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

  • Posted February 19, 2015

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


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.

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

Worked well to use FTPS on WordPress on an Nginx server, thanks. :)

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 ?