Upgrading your WordPress
You may think this sounds like an obvious topic, but I’ve read about so many people having problems or just simply too scared to upgrade in case something goes wrong. It’s such a simple thing to do too. I’ve upgraded both blogs on this domain to WordPress 2.5 today, took less than half an hour to do 2. So I figured I’d write out my own steps which may be of use to some.
- First off, backup your database. You can do this via phpMyAdmin, if it’s available, or use the WP Backup plugin.
- Next I check my plugins are up to date. This is easily done by viewing the plugins page and see which ones are out of date. You can visit the correct plugin page for each, download the latest version and upload it to your plugins directory. (Remember though, not all plugins will have the auto alert feature so check the plugin author’s site to be 100% sure).
- Next up is updating your wp-config.php file. Use the wp-config-sample.php file from the new WordPress 2.5 folder (that you’ve just downloaded and extracted), and complete your database connection details and also change the table name prefix from wp_ to whatever you use if necessary. Upload this to your root folder after renaming it to wp-config.php. The new change from WordPress 2.3 to 2.5 won’t affect your site, so get this bit done first.
- Then, in your FTP, remove wp-admin ONLY. The front end site doesn’t need wp-admin to function, so delete that first.
- Once it’s finished, upload the new wp-admin directory for WordPress 2.5.
- Then you want to delete index.php in your root directory for your site. This is the main front end file so we need to prevent people from seeing a broken site.
- Then either right click in your FTP window and click on new file, and name it index.php, or if you want to be a little more prepared, upload a file called index.php and you can put inside it a message such as “We’re currently updating the website, be back soon”.
- Now rename wp-includes to be wp-includes-old, this is because it’s quicker.
- Delete all files in the root that start with wp- besides wp-config.php. Also delete xmlrpc.php.
- Upload the new wp-includes folder, and then upload all of the root files beginning with wp- and xmlrpc.php (don’t upload index.php just yet).
- Once you’re finished uploading, go to /wp-admin/upgrade.php and run the upgrade on your site.
- If everything is okay now upload index.php, overwriting your holding page.
- Remove wp-includes-old directory.
That should be all you need to do. It sounds and maybe looks a lot but it’s fairly straight forward. I always remove my files before uploading new ones for upgrading. It keeps things tidy and you know that all of your files have uploaded cleanly. By doing this in steps you’ll minimise the disruption on your site as the only point at which the site will not be available will be at step 6 and should literally be a few minutes, depending on your internet connection speed.
The upgrade to WordPress 2.5 has been pretty easy and straightforward from my point of view. I have a handful of plugins running on my site and none have broken. All of the popular plugins have already been upgraded, if necessary, to work on 2.5 anyway, and to be honest the main change for 2.5 is the admin area, so front end plugins don’t seem to have been affected.
If you are intending to upgrade any time soon then I recommend the following 2.5 only plugins: