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 http://ftp.myserver.com name correctly.
Hi Dion,
Ive tried that, same issue. Any other ideas?
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?)
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.
> 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.
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?
Where you refer to .. is that within the wp-cofig.php file?
Yep, same place as the FS_METHOD define.
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.
you saved my day dion, thanks