Upgrading Gallery2

The most reliable way to upgrade Gallery2 is to do a complete replacement.

To ensure a safer upgrade, it’s recommended that you deactivate or even uninstall all the plugins installed, and change the theme back to default theme of Gallery2 to Matrix.

Gallery 2 Plugins

Gallery2 Matrix Theme

Download and extract the latest version of Gallery2.

$ cd /var/www/
$ wget http://downloads.sourceforge.net/gallery/gallery-2.2.5-minimal.tar.gz
$ tar -zxvf gallery-2.2.5-minimal.tar.gz

I like to use symbolic links to help me easily replace older version with newer one.

$ mv gallery2 gallery-2.2.5
$ ln -s gallery-2.2.5 gallery2

Copy the existing g2data directory to the new Gallery2 directory e.g.

$ cp -R ./gallery-2.2.4/g2data_e76ab32e8b ./gallery-2.2.5

Run the install script by pointing your browser to the base url of your website (e.g http://gallery.vincentkong.com), which will bring you through an installation wizard to setup Gallery.

Gallery Installer

When the Storage Setup is reached, Gallery will ask to specific a directory g2data where all the images will be stored. Enter the same directory which was just copied previously.  e.g. /var/www/gallery-2.2.5/g2data_e76ab32e8b

Gallery 2 Database Setup Upgrade

When the Database Setup is reached.  Click on the “Reuse Existing Tables” button.

Gallery Database Setup Upgrade

When the Version Check is reached by the installer it will bring you to the Gallery Upgrader script, where you continue with the Upgrade wizard.

Gallery 2 Version Check

Gallery 2 Upgrade Welcome

In the Upgrading the Gallery Core Module it’s recommended to back the exist database before continuing. e.g.

$ mysqldump -u username -p gallery_database > gallery_database.sql

Gallery 2 Upgrade Core

The Upgrade Plugins is the final step in the upgrade process.

Gallery 2 Upgrade Plugin

Gallery 2 Upgrade Finish

Related posts:

  1. Gallery2 Quickstart Guide
  2. Gallery2 URL Rewrite Plugin
  3. Upgrading Dopod 818 Pro to Windows Mobile 6
  4. Drupal Quickstart Guide
  5. Upgrading Portable-VirtualBox
This entry was posted in Gallery and tagged . Bookmark the permalink.

Comments are closed.