So you’ve decided to upgrade your wordpress blog. There are a few ways you can do this:
1) Use the automatic upgrade tool included with wordpress 2.7.x
2) Use an upgrade plugin
3) Manually upgrade your wordpress blog
I will now go through the three procedures below:
(Note: it is very important to make backups of your wordpress files and database before proceeding with any upgrade, as upgrading a blog can effect your themes, plugins, etc. Having a backup will let you revert your blog to its previous state if the upgrade does not go as smoothly as planned)
1) Automatic Upgrade Tool (WordPress 2.7.x)
With the release of wordpress 2.7.x an upgrade tool is now included with the wordpress package. When new packages are available, wordpress will give you a prompt on the top of your dash board when you log in. To upgrade, simply click “Upgrade Now.” You will then have the option of either automatically upgrading the blog or downloading the files to run the upgrade manually ; I will go over the manual upgrade later on in this post. At this point, select the automatic upgrade option, watch the script run, and you should be good to go. You may however run into a few common issues:
a)Safe mode is not turned off
If safe mode is on, the upgrade will not run so be sure to have this set to off. You can typically modify this setting on your php.ini file. The directive looks like this:
safe_mode = off
If you do not have write access to this file, contact your web host and ask them to turn this off for you. If you’re weary of making this change, you can always switch safe mode back to “On” when you have completed the upgrade.
b)wp-header.php is unwritable
If the wp-header.php file is unwritable you’ll get a nice error telling you off this, simple ensure that you have the proper write permissions to this file and you should be good to go.
c) Upgrade will not run due to a memory issue
PHP memory is limited on some hosting companies and you may or may not have enough allocated memory set to preform the upgrade. If you require more php memory, you can update your php.in file and adjust the following setting:
memory_limit = 18M
(from my personal experience upgrades tend to utilize anywhere from 18-20M so set this value at a comfortable number so you do not go over the limit)
2) Upgrade Plugin
There are several plugins that you can install to automatically upgrade you blog. I would suggest searching for one online. Just install the plugin and activate it through the Plugin settings on your wordpress admin panel. This is only for users who have versions of wordpress prior to 2.7.x installed as newer versions of wordpress have the auto upgrader and having both can cause conflict issues. The same measures noted below for automatically upgrading apply here as well. Make sure that safe mode is off, that you have sufficient php memory, and that you have the proper permissions to overwrite existing files.
3) Manual Upgrade
Manual blog upgrades are a lot simpler than how it sounds. All you really have to do is obtain the latest package of the wordpress files and upload the files over your existing wordpress files.
You can obtain the wordpress packages from two places:
a) If you’re using wordpress version 2.7.x you can download the latest package through the automatic upgrade tool as it provides you have an option to download the files
b) Through the wordpress.org site you can also obtain packages of wordpress here is the url:
http://wordpress.org/download/
After obtaining the package, upload it via ftp and overwrite your existing wordpress files. Then access your admin panel to via webbrowser to finalize the upgrade.
Also keep in mind for php safe mode, php memory, and permissions