Raam Dev’s Weblog

Avatar

"I used to feel so alone in the city. All those gazillions of people and then me, on the outside. Because how do you meet a new person? I was very stumped by this for many years. And then I realized, you just say, “Hi.” They may ignore you. Or you may marry them. And that possibility is worth that one word." – Augusten Burroughs

Planning for the upgrade to WP 2.5

I spent this past weekend setting up a copy of this blog in my local development on my laptop. I wanted to see if upgrading from WP 2.3 to 2.5 would break my current theme and as I suspected, it did. What broke wasn’t obvious (category browsing I believe), but it was enough to make me decide to change my theme. There’s nothing wrong with the current theme, it just feels like it’s time for a change.

Setting up a local copy of my blog was really easy. I only needed to modify two WordPress settings and even then, that was only because I choose to use a different domain name locally. The basic process looked like this:

  • Copied all of the WP files for my blog to my laptop
  • Exported the live WP database and imported it into the local MySQL database using phpMyAdmin
  • Created a database user to match the one on the live site (with the same password)
  • Created a VirtualHost entry in my local httpd.conf:
  • <VirtualHost *:80>
       ServerAlias blog.raamdev.dev
       DocumentRoot "/Users/raam/workspace/blog.raamdev.com"
       ServerName www.blog.raamdev.dev
    </VirtualHost>
    
  • Added an entry to my local hosts file (/etc/hosts) so that blog.raamdev.dev would resolve to the local web server:
  • 127.0.0.1      blog.raamdev.dev
    
  • Opened the local phpMyAdmin and modified the following database entry, changing the URL to my local development address: wp_options -> siteurl = http://blog.raamdev.dev
  • I was then able to login to my WP admin page at http://blog.raamdev.dev/wp-admin/ and modify the second setting: General Options -> Blog Address = http://blog.raamdev.dev

Now I could type in http://blog.raamdev.dev in my local web browser and use my blog on the local machine. This is great because it allows me to test themes and make changes without screwing up my blog.

No Comments, Comment or Ping

Reply to “Planning for the upgrade to WP 2.5”