Had "bad_httpd_config" error when transfering my blog from lunarpages to dreamhost
As Lunarpages complained my blog exceeded the limit of CPU usage again, I decided to move my blog to another web hosting service provider. Because Dreamhost gave promotion of 1 year unlimited webhosting for less than 10 USD, it seemed to be worth a try.
I planed 3 steps:
1. Install a new blog on Dreamhost with a different domain name;
2. Import my old posts to the new blog;
3. Redirect the traffic towards the blog on Lunarpages to the new blog.
But I had problem since the first step! I got a “bad_httpd_config” error when I try to visit the domain transferred to Dreamhost. After exploring all possible reasons, I found that the IP assigned to the domain I just transferred to Dreamhost is different from the IP I received when I opened my account at Dreamhost. I have a dedicated IP at Lunarpages and it is the same for all domains I host at Lunarpages, so I didn’t expect the IP would change for different domains at Dream host. The problem was solved after I corrected the DNS record.
However, I had trouble again at the second step. While I tried to import the database backup of my blog to my dreamhost account, “localhost” was not working and I had to set up a sub domain name for the database server. I got a “bad_httpd_config” error again when I clicked the phpmyadmin link to manage the database. By spending more time, I realized that Dream host assigned another different IP for the sub domain. I had to add extra DNS record to make it work. More embarrassing, even after the phpmyadmin was working, I could not restore my database backup though I had success of the same kind transfer.
After hours of struggling, I eventually transferred all my posts with the built-in export/import functions of latest WordPress (2.8.4), though all setting were lost. Anyhow, now my blog have been moved to Dreamhost and hope that I can get rid of CPU usage problem for a while.