Sorry, I screwed it up…

Posted on January 19th, 2009 in blogging - 8 comments

Over the weekend I tried to move this site (chandoo.org) from one hosting provider to another. Whenever I do this, I dont feel so good and yesterday was no exception.

The move failed

Soon after changing the DNS Server settings to point to new host, I was getting HTTP 500 error. A closer look at error logs and I found a message “premature end of headers in index.php” which could mean several things according to mighty internet.

Well, I couldnt do much about this, so I silently changed back my DNS to old provider. I will look in to this issue again this weekend. So meanwhile if you see something funny on the blog hosting front, just hang in there and be with me. I am sorry if you are frustrated seeing a useless http error but beleive me, I am even more frustrated seeing the same errors.

Written by Chandoo
Tags: , ,
Home: Chandoo.org Main Page
? Doubt: Ask an Excel Question

8 Responses to “Sorry, I screwed it up…”

  1. teylyn says:

    Hang in there, Chandoo. There are a lot of us who will hunt you down, wherever you host. Just too good a blog to miss!

  2. Jon Peltier says:

    This is a frustrating process. I did it last April, and may have to again this spring. There are so many ways to get it wrong, and only one way to get it right. And all of the guides online differ in their protocols.

    Good luck.

  3. Tarun says:

    2-3 days back I changed my host from 1and1 to Media Temple.

    Flawless migration.

    1. Using WinSCP, copy all your files & directories to the local computer first, and then to the new host.

    2. Use MyPhPAdmin to take a dump of the db, and then import it using the MyPhPAdmin on the new host.

    3. Update the DNS on the old host to point to the new host.

    Did you edit your index.php file?

  4. Tarun says:

    Why did your index.php fail.
    .
    Which host are you migrating to and from where.

  5. Chandoo says:

    @Tarun: I did the same steps...

    but since my current host doesnt allow winSCP or SFTP, I used FTP (took several hours šŸ™ ) to download the current installation's theme, plugin and upload folders

    unzipped a fresh install of wordpress from wordpress.org to my new hosting account

    replaced the theme, plugin and upload folders

    updated DB through SSH (phpmyadmin cant be accessed until I change my nameservers, thus, I used mysqld)

    and finally updated name servers.

    I was able to view static files (like http://chandoo.org/) and images... but not the index page.

    the current host is godaddy and I tried to migrate to dreamhost.

  6. Tarun says:

    Potential error step 1.
    _______________________
    Chandoo - unzipped a fresh install of wordpress from wordpress.org to my new hosting account
    ______________________

    Potential error step 2.
    ________
    updated DB through SSH (phpmyadmin cant be accessed until I change my nameservers, thus, I used mysqld)
    ________

    You should not install a fresh WordPress during migration. Just copy over exact same files from your old host to new host.

    What do you mean - current host does not allowWinSCP - but you used FTP?

    WinSCP IS a GUI FTP!

    PhpAdmin cannot be access until you change the nameservers? I would find that extremely hard to believe! Where you getting you info from!

    You don't have to edit your index.php ...that was my point in the last post. Why did you do that!

    Lastly, Dreamhost Vs Mediatemple grid service. Compare these two and if you are within 30 days of the purchase, reconsider the decision to go with Dreamhost and shift to Mediatemple.

    Unless of course you are going with Dedicated servers or something similar.

  7. Tarun says:

    Hey I noticed too many exclamation marks...I was not really jumping around writing that post šŸ˜€

  8. Chandoo says:

    @Tarun: Awesome.. I kind of guessed that step 1 "unzip fresh install" was the problem.

    I did have the winSCP FTP client. But when you create a new connection, it asks for preferred protocol and the options are FTP, SFTP and SCP. I meant my current host doesnt allow anything other than FTP.

    The reason I used fresh install is, download rates from FTP to my comp were bad due to my slow internet connection. I thought I could avoid some extra download by getting a zipped file from wordpress.org.

    And wrt. mysql, dreamhost gives a mysql subdomain through which you can access phpmyadmin. that is why nameserver change is required.

    I never really edited the index.php. But after few hours and still the same error, I have opened it and added a headers section (that seems to be one cause for this according to few articles on the net).

    Thank you so much for answering my questions. You are really helpful šŸ™‚

    btw, I am moving this site to the basic package on dreamhost. I doubt if moving to a Grid Hosting or Dedicated is required for a small site like mine. It gets around 5k page views a day and the template isnt particularly mysql hungry either.

Leave a Reply