• Hi Guys,

    Having some issues with using auto upgrade / install. I am getting the following error:

    Failed to connect to FTP Server ftp.myserver.com:21

    My details are correct as I can login using Filezilla.

    Anyone got any suggestions?

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Dion Hulse

    (@dd32)

    Meta Developer

    Try using “localhost” or “127.0.0.1” as the hostname, see if that helps, sometimes due to poor server configuration, the web server can’t resolve the https://ftp.myserver.com name correctly.

    Thread Starter liamtmt7

    (@liamtmt7)

    Hi Dion,

    Ive tried that, same issue. Any other ideas?

    Moderator Dion Hulse

    (@dd32)

    Meta Developer

    Theres a few other possibilities.. The next one to try would be to prevent WordPress using the PHP FTP Extension if it’s loaded, and instead, use an alternate library.

    Open your wp-config.php file, and add this before the stop editing comment:
    define('FS_METHOD', 'ftpsockets');
    That’ll force WordPress into using a PHP library instead of the extension.

    See if that one works, if not, there’s another idea up my sleeve, but i’d prefer you try that one first ??

    (Also, I assume this is a shared host, and not a VPS or Dedicated server?)

    Thread Starter liamtmt7

    (@liamtmt7)

    Thanks Dio, that works!

    Well, it solves my connection error, i now get an error:

    Warning: touch() [function.touch]: SAFE MODE Restriction in effect. The script whose uid is 1056 is not allowed to access /tmp owned by uid 0 in /home/ me
    /domains/mysite/public_html/dir/wp-admin/includes/file.php on line 213

    Download failed. Could not create Temporary file.

    Moderator Dion Hulse

    (@dd32)

    Meta Developer

    > SAFE MODE Restriction in effect.

    Thats annoying, It means you’ve got a bad Server configuration.

    A few options:

    • You can Chmod wp-content to 777 (or maybe 775) – Not recomended really
    • You could direct the temporary files to the Uploads folder: define('WP_TEMP_DIR', '/home/me/domains/mysite/public_html/dir/wp-content/uploads/'); – Assuming you’ve chmod’d your uploads folder already, Not really recommended either, although it’s one less folder to have world writable
    • You could create a folder in wp-content, set it world writable, and set WP_TEMP_DIR to that.
    Thread Starter liamtmt7

    (@liamtmt7)

    The writeable issue shouldn’t have a big impact to be honest, this is just a site for me to play round with WP as im a new user to its not going to be a ‘live’ site so to speak, for now anyway.

    Where you refer to
    define('WP_TEMP_DIR', .....

    is that within the wp-cofig.php file?

    Moderator Dion Hulse

    (@dd32)

    Meta Developer

    Where you refer to .. is that within the wp-cofig.php file?

    Yep, same place as the FS_METHOD define.

    Thread Starter liamtmt7

    (@liamtmt7)

    Brilliant Dion

    Thanks very much for you help, Im getting a warning about
    Please check permissions for next directories:

    …public_html/WP2011/wp-content
    ….public_html/WP2011/wp-content/constructor
    …public_html/WP2011/wp-content/uploads/constructo

    but thats something else I can look into.

    Again, thanks for the help. Much appreciated from a Word Press newbie.

    doncartel

    (@doncartel)

    you saved my day dion, thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Install Themes – FTP Connection Error’ is closed to new replies.