Sidetracked - upgrading wordpress
Monday, July 28th, 2008Every time I log in to write a page as I did at the start of my lunch break today WordPress was asking me to update to a new version. So I wondered what was improved in the latest shiny 2.6. It turns out I can preview new themes without making them go live. Great that’s a good excuse to upgrade so I thought I’d give it a go. Apparently it’s as simple as a three step solution.
- backup
- copy over the new files and merge just one wp-config.php
- log in as admin and update the database.
Great, even I can do that. So I downloaded the new installation here, played with the cPanel app at HostMonster until I was happy I’d a backup and then copied the new files over using Filezilla ftp from my windows box. Then I merged up the configuration file, creating three new lines in my old one for new security using a website to generate random seeds. All good - except then I couldn’t do step 3. Fortunately my backups worked so I went back and tried again - nope. So I got SSH access to my server, I needed to request it and the HostMonster help desk had enabled it within about 2 minutes after a quick e-mail. Great! I tried again, this time doing everything from the ssh log in as the process of unzipping and ftp-ing the php files appeared to have mangled line endings. Still no luck.
Finally I read the more expanded instructions which make no mention of merging the wp-config.php file, instead just keeping your original. As if by magic it works. After some digging it turns out the automatic key generation had failed me and generated something that was messing everything up. I generated new keys and added them for safety and now I’m on to the new WordPress 2.6. Still sadly now there is no time for me to play with themes or write the blog I originally intended… bah!