It’s getting closer to the release of WordPress 2.0, and i’m already getting questions from some customers of mine who I support WordPress installations for, so I figured it was time to put myself up a sandbox, do a test upgrade and see how it all goes?
This is also a step-by-step guide of how I achieved it.
Backup Data
First thing is first, let’s get a play copy of my database to play with. Hopefully you’re web provider is kind enough to allow you to create multiple databases, if not visit the Contact page and ask me for WordPress hosting!
Using phpMyAdmin complete the following steps:
(Users of my WordPress hosting service can find phpMyAdmin installed at http://…../system/phpMyAdmin and will require thier webhosting username/password to login to it).
Select the database you’re using for WordPress from the drop down menu of databases, followed by the Operations tab. Enter the name of a new database and click Go.
You should then also make sure you have a backup copy of all your files somewhere as well, before you go playing too much. You don’t want to lose anything!
Change to the root of you’re webhosting directory (mine is ~/jaredquinn.info), and create a folder for your sandbox/testarea to be installed info.
I’m living dangerously here, and am using the latest (regularly updated copy of WordPress from checked out from subversion, as I intend to use this for WordPress development.) You can use a straight install of WordPress into this directory if you like; or to get the cutting edge stuff:
svn co http://svn.automattic.com/wordpress/trunk/
Once you’ve got the code extracted (or downloaded or otherwise copied) into your sandbox area, copy your wp-config.php into there and change the name of the database to the one you just created.
Next, you need to make sure that your database has the correct paths and URLs in it for the new blog, to do this we need to get back into phpMyAdmin, find the wp_options (where wp is the prefix you use for your tables) and select Browse.
Find siteurl and set it to the URL to get to the new path you created (I just needed to add ‘dev’ on the end of mine, as I set up an Apache alias to point /dev to the path of the subversion trunk directory inside my sandbox.)
Once you’ve done that, grab your browser and head to the wp-admin area of your new blog.. Mine happens to be http://jaredquinn.info/dev/wp-admin/. Wow a nice new shiny login screen, and once you’ve logged in, a nice new shiny theme for the admin panel. Welcome to WordPress 2.0
What Next?
My theme or plugins were not copied over, as this was a fresh install from subversion, so I had to go and set back to a default WordPress theme and then head to my main blog to see how it was.
My next couple of articles will deal with converting my theme and plugins over to this new install, before finally making the site live once I’m happy with the result.
Some other relevant links that may help you on your path to 2.0…