PDA

View Full Version : Upgrading Gallery2 from 2.0 to 2.1.1a


ThePound
6-13-06, 11:27 PM
I posted this in the help forum of Gallery2, http://gallery.menalto.com/forum/67

Get system details; useful for copy/paste into G2 support forum.
Last Run Details:

Gallery version = 2.0 core 1.0.0
PHP version = 4.4.2 cgi
Webserver = Apache/1.3.34 (Unix) FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7d PowWeb/1.1
Database = mysql 4.1.15-log
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd
Operating system = FreeBSD clust08-www05.powweb.com 4.11-RELEASE FreeBSD 4.11-RELEASE #0: Thu Ma i386
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)

-------------------

I have quite abit of photos & users, so I do not want to mess this up. SO, I installed G2 from PowWeb's auto intall feature which used version 2.0 Core 1.0.0, now they have sold out to a new webhost, I would like to move to the new webhost with the most current version of G2, but I am not really sure how to upgrade.

1. I DL'ed the FULL Install of 2.1.1a.zip which per intructions says to install over the current version, if I do this, will I retain users & photo albums?

2. Do I rename the old folder Gallery2_old?

3. I found this in your help forum "Try change your storage lock system from file base to database based.", mine is currently file based, Do I indeed make this change?

4. Or would it be better to upgrade once the move to Endurance has happened?

I am fairly good at following the readme's & install instructions, but I read somewhere on PowWeb's help forum that Gallery2 has special intructions for that particular webhost. So answers to those 4 questions would be a great help, plus a double assurance that an "over install" will not erase photos albums & users.

Thank You Very Much
Rob

---------------------------------

It appeared that responses on most of the posts on their forums were few & far between, do you guys have any suggestions to those 4 questions?

Thank You,
Rob

cstorer
6-14-06, 08:08 AM
Rob -

After my migration I did the same G2 upgrade you are looking at - 2.0 to the latest build.

Just follow the directions exactly as they are in the G2 FAQ regarding upgrading.

Back up your entire G2 install first, and get a backup of your DB just in case.

Don't rename your current G2 dir, just install directly over top of it. Once you have extracted the archive for the latest build directly over your existing install, there is an upgrader.php url you will go to (this is in the upgrade instructions). Follow the directions through the upgrade steps, and you should be good to go.

Make sure you have the URL rewriting options disabled (they're broken on the new platform), and make sure you have the performance cacheing disabled. Clear your browser cache, etc, after the upgrade. Everything should be good.

You might also note that it will want to reinstall/reconfigure a few of the plugins, including the graphics toolkits (netpbm, jhead, imagemagik, etc). The paths for these apps have changed on the new platform - there is a post here in the forum containing the locations of the new bins.

Good luck!

-Chris

flyhere
6-18-06, 02:09 AM
I am looking at doing the same thing (upgrading G2 from 2.0 to 2.1) and would appreciate some more details.

I had autoinstalled Gallery2 (v2.0), I run it inside Joomla. Then downloaded a bridge component. I can easily reinstall this bridge.

I had my site migrated (automatic), and the photos don't show any more.

For Gallery2, I looked at my server folders. Under my /htdocs, I have g2data with albums, cache, locks... inside it, and nothing else.

But when I manually downloaded G2 2.1, I have (in addition to the g2data folder) images, install, lib, module, themes, upgrade.

My questions: do I have to load all of these folders? and just overlay g2data folder?

cstorer
6-20-06, 10:27 AM
Well, it depends on where you told G2 to install through the instant installer. I also used the PowWeb instant installer for my initial install, and gave it the target directory /htdocs/gallery2. Under there I have my entire G2 installation, and that's also where my g2data directory is located.

Do you see any of the other G2 related directories paralell to your g2data directory? Ie, was yours installed to just /htdocs? If so, I don't think that should be too difficult to fix.

What url do you use to get to your G2 install natively (ie, not through joomla)?

As far as the photos not showing, this is likely due to one (or both) of two things: bad paths for the graphics toolkits, and/or you have the URL rewrite option enabled.

There is an issue, that remains unresolved to my knowledge, w/ using the G2 URL Rewrite options. It will break your gallery, so disable it.

G2 relies on one or more image toolkits (netpbm, jhead, imagemagik, etc). If the paths for these binaries are not correct in your G2 config, G2 won't be able to auto-resize images or generate thumbnails. This will lead to broken images.

I'm using the following paths which are working:

imagemagik - /usr/bin
netpbm - /usr/local/netpbm
jhead - /usr/local/bin

You'll need to go to the admin page and see what's listed under graphics toolkits. Click on each one, check the paths and change as neccesary, save the changes, and run the 'test settings' (netpbm will throw a few errors during the test, but it's still functional for most common mimetypes).

Once you've verified the paths are all correct and the toolkits pass their tests, go to the maintenance menu and use the "build thumbnails/resizes" option to have it rebuild everything with the new, correct, toolkit paths.

To directly answer your last question - You do have to load all the folders in the upgrade package. (There are a few exceptions, ie, you can pare out some of the thmes if you won't use them, but I'd just load everything). However, everything within that archive should actually be paralell to your g2data directory. Ie, directory structure should look like this:

-Gallery2 Root
----docs
----g2data
----images
----install
----lib
----modules
----themes
----upgrade

You should also have a few files in your G2 root directory - main.php, config.php, embed.php, index.php.

During the upgrade, do *not* touch your g2data directory. And make sure you get a backup copy of your entire G2 root and subfolders (including g2data) prior to the upgrade, just in case.

Hope this helps!


I am looking at doing the same thing (upgrading G2 from 2.0 to 2.1) and would appreciate some more details.

I had autoinstalled Gallery2 (v2.0), I run it inside Joomla. Then downloaded a bridge component. I can easily reinstall this bridge.

I had my site migrated (automatic), and the photos don't show any more.

For Gallery2, I looked at my server folders. Under my /htdocs, I have g2data with albums, cache, locks... inside it, and nothing else.

But when I manually downloaded G2 2.1, I have (in addition to the g2data folder) images, install, lib, module, themes, upgrade.

My questions: do I have to load all of these folders? and just overlay g2data folder?