[Blogging] August 21, 2008

Hey Everyone thanks for visiting!

So The other day a client brought up an issue about their wordpress blog, which pretty much everyone uses these days, Anyway, They had an issue with wordpress asking them for FTP information everytime they want to upgrade a plugin automatically through the new auto upgrade feature in the admin. Apparently this is a new security feature because I had not found it before.

But good news! A Quick google search yields results!! I found a quick workaround here. Which I will explain below.

First you need to locate your wp-config.php file located in your root blog directory (example: www.domain.com/blog/wp-config.php) open up that file, and below where it sets up all the ftp information such as this:

// ** MySQL settings ** //
define('DB_NAME', 'putyourdbnamehere'); // The name of the database
define('DB_USER', 'usernamehere'); // Your MySQL username
define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

Now just give it a few line returns and then paste the following:

define('FTP_HOST', 'ftp://example.com/');
define('FTP_USER', 'example_user');
define('FTP_PASS', 'example_pass');
//Set to true if your host uses SSL connections
define('FTP_SSL', false);

Of course now if you have access to your ftp info, which you should, simply replace the placeholder text inside the single quotes(you need to keep the single quotes) such as replacing ‘ftp://example.com/’ with ‘ftp.yourdomainname.com’ and do the same for the username and password(define(‘FTP_SSL’, false); can stay untouched) and voila! you are upgrading plugins left and right without skipping a beat!

Hope you guys found this helpful, I know I did. Let me know if anyone has any trouble with the solution.

Speak Soon,

Andy Sowards

by:Andy Sowards Thx 4 Reading!

 
 

There are 9 Responses so far
Leave Your Input! »

 
  1. Pritesh Gupta June 15, 2010 @ 5:02 am
     

    Hi,
    Thanks a lot.
    Was looking for something like this only.

  2. Andreas Obermüller May 27, 2010 @ 7:39 am
     

    Thanks to Gerard Hevey, this helped me very much and works like charm on my cPanel accounts :-)

  3. Trizzey March 30, 2010 @ 4:35 am
     

    Hey thanks!

    works perfectly!

  4. samantha January 7, 2010 @ 2:00 am
     

    Your post entry helped me get rid of the “enter server information” while attempting to upgrade. Unfortunately now it gets stuck at “unpacking update” it just won’t do anything after that.

    I just switched my site to a new subdomain and so far its been a pain. I hate it =/

    scratch that. it worked!! thank you so much (it was aparently downloading in the background very slowly)

  5. Amrit at procasinoguide.com July 27, 2009 @ 10:45 pm
     

    I have the same problem but the above code didn’t help me. :(
    I found this: http://codex.wordpress.org/Upgrading_WordPress

    It is stated that: Note that your files all need to be owned by the user under which your Apache server executes, or you will receive a dialog box asking for “connection information,” and you will find that no matter what you enter, it won’t work.

    Do you have any idea what this means?

  6. George February 7, 2009 @ 3:54 pm
     

    Your post is the only potential solution I’ve seen that speaks in plain English and is complete…

    …but I still can’t solve this problem.

    For this part: define(‘FTP_HOST’, ‘ftp://example.com/’);

    I’ve tried ‘ftp.myhostname’ and ‘myhostname’ but I still can’t get this to work.

    Tech support at Network Solutions has been worthless as well.

    Any other suggestions?

These people linked to this virus.

  1. WordPress FTP Information for Upgrade/Install | Jordan's Technology Blog April 8, 2009 @ 11:58 am
     

    [...] but I like to make it sound as though I spent a lot of time on the effort) I came across this blog post/tutorial which states that you can define values in your wp-config.php file as a [...]

Be Heard!
Leave a Comment!