Restoring Drupal 6

After last year’s disastrous attempt to upgrade our hosted web site I decided to build a ‘pre-prod’ copy of the site on a VM hosted on my iMac to play with before touching the actual ‘production’ site hosted at UK2.NET again.

It has been a long and arduous process just to build the basic LAMP server because the CentOS 6 (and earlier) distribution doesn’t include the phpMyAdmin tool for MySQL which makes life really hard setting MySQL up. (The sting in the tail is that phpMyAdmin won’t backup or restore databases larger than about 10MB due to a bug that hasn’t yet been addressed by the developers. Crazy!)

But eventually I have managed to get the production web site and database migrated to pre-prod, only to find that while I get the home page okay clicking any link through to another page always throws a 404! ARGH!

It was only with the help of this page that I found out why, the ‘clean URLs’ feature. And finally an appearance of a document in the Drupal site on how to migrate or restore Drupal here confirms the need to turn off ‘clean URLs’ before backing up the source web site.

Which makes me wonder “If you have to turn them off every time you want to take a back up, what is the point of them in the first place?” But actually the answer is that my LAMP setup doesn’t support clean URLs for some un fathomable reason that is too low priority to sort out now.

2 Replies to “Restoring Drupal 6”

  1. I Was Wrong
    I eventually discovered that the issue was that the VM server I’d set up was not compatible with clean URL’s. Something to do with mod_rewrite in Apache not set up correctly. I managed to turn off clean URL’s to get a working on premise non-prod system! Yay!

  2. And There’s More!
    After another far too many hours I found that the original failed upgrade had left the database in an “indeterminate state!” Neither Drupal 6 nor Drupal 7. 🙁

    And that is now at least a year ago! Lynne and I have both added tons of material since then so a tool-back is not an option, even though I have the backups. I found a posting of an American University at where they appear to have suffered the same or similar fate.

    Right now I’m debating whether to try this or try to cut my losses and attempt to migrate only the ‘valuable content’ from the ‘hybrid’ to a clean D7 database?

Comments are closed.