Here is a quick tip for friday, Wordpress 2.7 2.6 introduced updating of your plugins from within wordpress. A great feature that cuts down the time to update most plugins (*cough* WP Super Cache *cough* ). But one thing that drives me nuts is having to enter in my FTP details each time. But alas! There is a solution.
Enter the following code somewhere into your wp-config.php file and plugin updating will be super fast.
define('FTP_HOST', 'yourhostname.com'); define('FTP_USER', 'yourftpuser'); define('FTP_PASS', 'yourftppass');
When you next go to update your plugins you won’t be asked for your details. Pretty neat hu?
This entry was posted on Friday, May 22nd, 2009 at 11:10 am and is filed under Wordpress. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.
@martin english; These values don’t exists in the wp-config.php file default – they need to be added. Wordpress uses FTP to download and install plugins when you use the Plugins > Add New. It also uses FTP to update itself when a new version is available.
Are you running your blogs on a Windows server? I do remember working on a blog on a windows server that didn’t need the details entered in more than once. But that’s Windows and I prefer to stay clear of it :)
According to the comment above this sounds like a plug-in for more advanced users eh? Is the trade off of the learning curve worth the eventual time savings?
There is no doubt this will save you time as it’s completely automated.. but it’s also unforgiving – you click go and all blogs marked as spam are gone. Make sure you have a backup before doing anything with this plugin.
Thank you very much for this helpful information!
I was working on my girlfriends WP Install and that thing just sucked in the FTP Login data and I couldn’t change the information anywhere in the wp backend.
Then I found this echo’d everything into wp-config and now I’m happy.
Cheers!
.-= Zettt´s last blog ..OS X Icons individuell anpassen – Tutorial =-.
Ok, this is the best tip I’ve run into all weekend. I find it so annoying to have to enter this info all the time. I had no idea there were config options for shortcutting it all.
Now, if only I could figure out why doing FTP plugin updates from Pair.com hosting is SO DARN SLOW!
.-= Dave Saunders´s last blog ..Personal Branding 101 – Present Your Personal Brand Through Your Personal Profile =-.
Question…how risky is it to add this to one’s config?
.-= Dave Saunders´s last blog ..Personal Branding 101 – Present Your Personal Brand Through Your Personal Profile =-.
Title : My Boy (1)
Media: Canon EOS 350D DSLR, Adobe Lightroom, Photoshop
Description : A day out in the park with my world.
Title : Tasmania Corrective Services Badge
Media: Adobe Illustrator, Stitch
Description : Badge for the Canine Drug Detection Unit
Title : Webb Martin Consulting Website Concept 1
Media: Blog/Website, flash, css, xhtml, php
Description : Website deisgn for Webb Martin Consulting
Title : Webb Martin Website Design Concept
Media: Wordpress, CSS, xhtml, php
Description : Concept website design for Webb Martin.
martin english Says
Don’t know if this posted before; fx died with some memory issues.
I’m running wp2.7.1 on my main blogs, neither has theee values in their gh_54si_a_20_config file, and I have no problems keeping the plugins up to date via the admin panel.
In fact, I can’t find these values anywhere, which makes sense because why would a WP install on MY server need to FTP to itself ?