derek, gwen, justin & sara tom in hong kong
June 24, 2003
Upgraded Gallery to v1.3.4

I just upgraded the Gallery scripts to version 1.3.4 from 1.3.3 for our photo gallery section. The process is very easy but a couple nights ago when I first attempted the upgrade, I got an error (Warning! Apache is not obeying your .htaccess file...) when running the Web-based configuration script. I reread the upgrade instructions (for the 5th time!) just today and sure enough, I apparently failed to do step 2!

Here are the commands and steps I took... The commands I issued over a ssh (secure shell) connection in Mac OS X's terminal (ssh -l username hostname) and for the file transfer I used the Transmit FTP client.

  1. cd /var/www/html/gallery (move into "gallery" directory)
  2. sh configure.sh (put Gallery in config mode)
  3. cd .. (move up one directory level)
  4. cp -r gallery gallery-new (duplicate "gallery" directory as "gallery-new")
  5. use Transmit to copy new v1.3.4 files into "gallery-new" (replacing files with same names)
  6. mv gallery gallery-old (rename old "gallery" directory to "gallery-old")
  7. mv gallery-new gallery (rename "gallery-new" directory to "gallery")
  8. go to http://derektom.com/gallery
  9. run Web-based config script
  10. cd gallery (move into "gallery" directory)
  11. sh secure.sh (put Gallery in secure/running mode)

Done!

Oh, one more thing: Because I had customized the CSS (cascading style sheets) files, I had to replace the new CSS files (just 2 files in the "css" directory) with mine (from the "gallery-old" directory). Of course, in step 5 above, I could have omitted trasferring over the "css" directory instead.

Also, if after the upgrade, all is well, you can delete the gallery-old directory.

Posted by derek at June 24, 2003 01:14 PM