Who's online

There are currently 0 users and 0 guests online.

Latest Photo Album

Latest comments

Add to Technorati Favorites

Don't delete your Drupal variables table

Tuesday, June 12, 2007 - 12:25pm

Mon Deiu, what a nightmare. Drupal quit working, gallery quit working, lots of settings that used to be there — now mysteriously gone. I had to grab my old table from the old site and rebuild the damn thing from scratch. Then re-install gallery and reset all of the Drupal 5.2 setting customizations that were made.

Damn phpMyAdmin. They really ought to add a “are you sure?” button to the delete buttons. That’s twice I’ve eliminated tables inadvertently without meaning to. Thank Jebus for backups.

Upgrade to Drupal 5.1 Successful

Sunday, June 10, 2007 - 7:33pm

Here it is — soon you won’t notice any difference between this “new” site and the old one. Maybe you don’t notice anything already. Shows how much attention you pay to detail. But here are some clues…

  • This funny symbol [’] has replaced apostrophes in strange places. Other ascii problems emerge every once in a while, too. This has to do with the utf coding of the database. I’ve found it easier and quicker to fix this by hand when they’re found. I’ll get ‘em all eventually.
    Update — I think I got ‘em all. With the exception of a few entries in the Rabbit’s guestbook.
  • The gallery works fine, but things look a little funky for now. This is a simple fix of uploading my custom gallery themes. It’s on the “to-do” list next.
    Update — this is now finished, with some further tweaking to pretty things up a bit (like the Slideshow page).
  • Some other little tidbits have yet to be upgraded, like the links and contact forms. And I still haven’t proof-checked all the pages.
    Update — Done!

Basically I’m just anxious to switch and since the database has successfully been swapped and upgraded (not without much pain and trial and error, mind you), I’ve gone for bust and made the switch so I don’t have to update two sites.

Successful relocation of Gallery 2

Saturday, June 9, 2007 - 8:23am

Now that’s how it’s supposed to happen! Works the first time like a charm. With the re-porting of goobertech from Drupal 4.7 to 5.0, I first recreate the entire site on a new location so the original can stay un-adultered and live. After re-doing the new drupal installation (with a few errors and tribulations), I set about duplicating the 1.47 gigs of gallery data on the new location. Here’s how I did it:

  1. First Backup the g2data folder. I did this easily with shell access. The command is…
    tar -czvpf gallerybackup.tgz g2data/

    This created a tarred zip file of the entire gallery file data. This includes all of the albums and actual pictures/files.
  2. Then I backed up the gallery database. Since I combine my drupal and gallery databases for some fancy and complex site manuevers, this took a bit more doing. The drupal database already existed and since phpMyAdmin can only handle about 5 Mb without timing out, I had to move most of the gallery tables one at a time. I simply exported them from the original database, and then opened them through sql in the new database.
  3. Now the fun part — waiting. It took almost 5 hours to download the zipped gallerybackup file and then upload it to the new location.

    UPDATE - with my new shell interface as root on the server (use putty), I can now do all this from shell. Now download/upload. The trick at this step is to copy the backup file to the new user directory. Inside the old user directory (with the backup file) type:

    cp gallerybackup.tgz /home/new_user_dir
  4. Meanwhile, I uploaded the new gallery 2 system files and installed a virgin copy in the new location. I simply let gallery do its own database table creating and gave it a new g2data folder to get a clean install.
  5. Once the backup file was uploaded, I renamed the g2data folder used by the fresh install to something else, (g2data2), for example. Then I unzipped the backup with this command in shell…
    tar -xzvpf gallerybackup.tgz

    So far so good.
  6. Then I recursively chmodded the entire directory with this…
    chmod -R 777 g2data/

    Now all the files and directories in g2data have read/write permission.
  7. Without touching the gallery install yet, I deleted all the gallery tables from the new database. Then I used the backed up tables from the original database to recreate them with phpMyAdmin’s sql tab.
  8. Now I browsed to my gallery install (direct link). The gallery wizard did an upgrade and all was well!
  9. The last step was to copy the original site’s .htaccess file (the one in the root directory). Otherwise gallery had login/permissions errors. I also had to update the member data in gallery (the owner, specifically) to match the new owner/admin name in drupal.

And that’s it — a perfect relocation with no links lost. I did have to re-activate the urlRewrite module and the matrix theme. But afterwards, everything simply worked. As it should be!

Syndicate content

My camera is fancy and takes cool pics of you and all kinds of stuff. Look for your captured likeness in my gallery and peek at other victims of the camera’s flash.

the Bible was a collection of books written at different times by different men — a strange mixture of diverse human documents — and a tissue of irreconcilable notions. Inspired? The Bible is not even intelligent. It is not even good craftsmanship, but is full of absurdities and contradictions.

— E. Haldeman-Julius

Fox Blog
The goobermaster’s daily blog.
Rabbit Blog
The Rabbit’s adventures abroad.
Badger Blog
The Badger’s letters from life in prison.

Three brothers, three stories, three blogs…