Forums

wp 2.7 error: Failed to connect to FTP Server http:// (35 posts)

  1. amitkvint
    Member
    Posted 2 years ago #

    Same here NOTHING helps any new ideas anyone ?

  2. foresto
    Member
    Posted 2 years ago #

    I got the same error when trying to install a theme. After some experimentation, here's what seems to be going on:

    1. WordPress tries accepting my theme file and installing it directly (from within the web server process).

    2. If that fails, WordPress falls back to installing via ftp.

    3. If an ftp connection fails, Worpress says "failed to connect to ftp server" and asks me for my ftp credentials.

    Problem 1: It never tells me the cause of the original failure, or even that there was a failure in the first place!

    Problem 2: It has a bug (or completely stupid design decision) that forces direct installations to fail if a certain file is not owned by the web server's user account. Details here:
    http://core.trac.wordpress.org/ticket/10895

    I guess people who run ftp services on their wordpress servers might not ever notice these problems, because WordPress' fallback to ftp installation would work around them. However, most of the experienced sysadmin community agrees that ftp tends to be a huge security hole, so many of us choose not to use them. I worked around the problem by changing the file ownership of wp-admin/update.php to be the account that my web server runs under (www-data in my case).

  3. foresto
    Member
    Posted 2 years ago #

  4. termserv
    Member
    Posted 2 years ago #

    Does this automatic upgrade function support SFTP?

  5. d-zine lounge
    Member
    Posted 2 years ago #

    I'm having similar problems and am in desperate need of help.
    I try and upgrade word press or install plugins and put in my connection information:
    hostname - localhost
    username - CP_name_number
    password - mypassword

    and get :Error: There was an error connecting to the server, Please verify the settings are correct.
    but i know the settings are correct!! Has anyone found the answer or how do you get hold of someone from wordpress to ask!

Topic Closed

This topic has been closed to new replies.

About this Topic