WORDPRESS SOLUTION: FAILED TO CONNECT TO FTP SERVER LOCALHOST:21


It then asks you to enter your FTP hostname, username, and password. Various resources on the web suggested I use my Ubuntu login while others said my WordPress admin account information. Neither of these worked.

As it turns out, WordPress 3.3 (and apparently earlier versions as well) installed on Ubuntu Linux require the owner:group of the wordpress directory to be www-data:www-data.

How To Fix It
Open a terminal and traverse to your WordPress directory on your localhost. For me the command is: cd /var/www/mysites/wordpress
Run this command: sudo chown -R www-data:www-data *
You should now be able to install themes and plugins. Enjoy!

Source: jeremyharris.me
Previous
Next Post »
Thanks for your comment