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!

13 commenti:

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

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

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

  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

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

    1. Thank you Kamlesh only your solution code worked out amongst many others

  6. Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write
    download descargar facebook gratis para Android celular and download free descargar facebook apk and descargar facebook gratis , descarga facebook

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