RSS Twitter

Photo Arts Forum

Welcome, Guest. Please login or register.
Did you miss your activation email?

Welcome to PAF!

Welcome to PhotoArtsForum.com. We're a spot where you can discuss all things photographic; from portraiture, to nature, to equipment, to whatever else. Feel free to browse around and read whatever interests you. When you're ready, please consider registering for an account and joining our little corner of the internet.

Author Topic: Updating WordPress without remembering passwords  (Read 168 times)

Ryan

  • Administrator
  • PAF Guru
  • Posts: 2,553
    • ProofBuddy
Updating WordPress without remembering passwords
« on: June 30, 2012, 09:52:09 AM »
File this under "wish I had already known."

A few versions ago WordPress added the ability to upgrade from within, all you had to do was enter your FTP connection info and it would take care of the rest. Turns out part of that was that you couldn't store your FTP connection info in wp-config.php and WP would do the upgrade when you asked without prompting for a password.

Add this somewhere to your wp-config.php file. I just updated my main WP site along with a network site and it went without a hitch.

Code: [Select]
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/path/to/wordpress/');
define('FTP_USER', 'your ftp username');
define('FTP_PASS', 'your ftp password');
define('FTP_HOST', 'ftp host - probably localhost');
define('FTP_SSL', false);

Now when you update plugins, themes, or the WordPress core it won't ask you for your connection info. It'll just do it.

Thanks to DigWp.com for the tip.

 


BloQcs design by Bloc
SMF 2.0.2 | SMF © 2011, Simple Machines
SimplePortal 2.3.5 © 2008-2012, SimplePortal