venerdì 5 luglio 2013

WordPress Solution: Failed to connect to FTP Server localhost:21

During a recent installation of WordPress 3.3 on my local Linux (Ubuntu) box, I attempted to change the theme and was met with an error I was unfamiliar with. The installation fails and gives the error:

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

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

9 commenti:

  1. Great resourses.I really appreciate for posting such a great Article.

    RispondiElimina
  2. Thanks a million. I was having nightmare for solving this problem this whole week.. !!

    RispondiElimina
  3. didnt get exact info from many sites,but u provide wat i need.thank u flash designing

    RispondiElimina
  4. Thanks for displaying up such fabulous data. I have bookmarked you and will stay in line with your new mails. I like this posted letters, hold creating and give informative post...!
    by MKT 571 Individual Assignment | LDR 531 Individual Assignment Provider

    RispondiElimina
  5. pae$ cd /var/ww
    pae$ sudo chown -R www-data:www-data wordpress

    RispondiElimina