Ever since I wrote Install WordPress on a Localhost I’ve received a bunch of requests on how to update WordPress on a localhost. It is actually extremely easy.
I think what frustrates people is the fact that WordPress automatic updates don’t work on most development servers? Don’t worry about that. It is actually very easy to update WordPress manually.
The first thing you should do is download the most current version of WordPress here latest WordPress.
Now just to be safe, make a copy of your current WordPress folder on your localhost machine. You then have to copy all of the files and folders (except for the wp-content folder)!!!
Now paste those files and folders into your old WordPress folder. Notice that the wp-config.php file is not in the latest WordPress folder. This file shouldn’t be touched because it contains setup information specific to your WordPress setup.
One of you asked that I provide the following tips to this tutorial – Thanks Mark 🙂
• Make a copy of your old WordPress folder somewhere else (eg on your Desktop) in case something goes wrong
• Download and unzip the latest copy of WordPress into a new folder somewhere
• Copy all the files and folders from this new update folder (except for the wp-content folder). (You will note that the new folder does not have the wp-config.php file. This file, which is in your old folder, should not be touched.)
• Paste these folders and files into your old WordPress folder. Allow Windows to replace any files and folders of the same name. Some old files will be replaced with the new while others such as the wp-config.php file will be untouched.
After you’ve copied everything, go to your admin page in a browser localhost/wordpress/wp-admin for example. When you login you’ll see the following message.
Just click the Update WordPress Database button and wait a few seconds and you’ll see this.
That’s it! Now your version of WordPress is up to date. I hope that helps?
Till Next Time