wordpress
WordPress Manual Update Instructions
One of the great things about WordPress is the one-click upgrade procedure. It’s particularly convenient, because WordPress has frequent upgrades and security updates. Without an easy way of upgrading, many users would complain of upgrade fatigue, or would continue running older versions with security flaws.
Of course, not everyone can use the one click upgrade: My host is not configured properly, so I need to upgrade manually. Fortunately, a manual upgrade is relatively painless. Although it is described in some detail at Upgrading WordPress: Manual Update, I’m listing my specific procedures (using the Bash shell) here.
- Download the latest version to your home directory:
wget http://wordpress.org/latest.tar.gz - Remove any old WordPress directory before unpacking the latest:
rm -r ./wordpress - Unpack the latest version:
tar -xf wordpress-3.2.tar.gz - Backup the database:
mysqldump --add-drop-table -h localhost -u [username] -p [database name] | bzip2 -c > [site name].[dd-MMM-yyyy].bak.sql.bz2 - Disable plugins. You can do this via the admin interface, or the database:
UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins'; - Remove the wp-admin and wp-includes directories:
rm -r ./path/to/your/wordpress/wp-admin ./path/to/your/wordpress/wp-includes - Copy only the updated files over to the WordPress install:
cp -ru ./wordpress/* ./path/to/your/wordpress/ - Visit the admin page (which may prompt a database upgrade).
- Re-enable any plugins.
Step 6 may seem unnecessary in light of step 7, but in my experience merely updating the wp-admin and wp-includes directories is not enough: there may be old files that are not present in the latest version, but that will cause problems if they still exist.
I’ve found that my reCAPTCHA plugin doesn’t retain its API keys, but you can look them up again on the reCAPTCHA site. Other plugins may have similar issues.
Thanks to Perishable Press for the tip on disabling WordPress plugins via MySQL.
WordPress Security Tips
I attended the WordCamp Birmingham conference this past weekend to find out more about all things WordPress. WordPress is an open source blog engine/lightweight Content Management System (CMS) that has a huge community of users and developers, and an enormous repository of plugins to extend its functionality.
One of the presentations I attended, Mitch Canter‘s session on WordPress Security, had 6 good tips for making your WordPress-based site more secure:
› Continue reading
Pages
Archives
- January 2012
- December 2011
- November 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- March 2011
- February 2011
- January 2011
- November 2010
- May 2010
- March 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008