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!

12 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
    Risposte
    1. Thank you Kamlesh only your solution code worked out amongst many others

      Elimina
  6. I would like more information about this, because it is very nice., Thanks for sharing.
    Signature:
    download free descargar whatsapp plus and download baixar whatsapp plus online and descargar whatsapp , baixar whatsapp gratis

    RispondiElimina
  7. Really good blog post.provided a many helpful information.I hope you will post more updates.
    seo company in Chennai

    RispondiElimina