[SOLVED] Upgrade from 2.2.6 to 2.3.2

seanb724

Joined: 2005-02-16
Posts: 18
Posted: Tue, 2014-04-29 21:09

I downloaded the gallery-2.3.2-typical-en.zip and unzipped it in my existing gallery directory. It seems like most files in gallery2/ were replaced, but some important ones like main.php and others still have a date of several years ago. I even tried unzip with -o to force the overwrite, but no luck.

So when I go to my gallery page I don't get the upgrade wizard. I even tried going to upgrade gallery2/upgrade/index.php manually, but while that gives the upgrade wizard, doesn't work at all -- probably because many files have not actually been updated.

I only do this kind of thing once every 3 or 4 years, so it's hard to remember all the right steps! Any help would be appreciated.

Thanks
Sean

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-29 22:18
 
seanb724

Joined: 2005-02-16
Posts: 18
Posted: Tue, 2014-04-29 22:29

Anything in particular you are pointing me to?

There's no version.dat file in the albums directory. Maintenance mode in config.php is set to false...

Or did maintenance mode need to be set to true when unzipping?

Thanks,
Sean

 
seanb724

Joined: 2005-02-16
Posts: 18
Posted: Tue, 2014-04-29 22:50

Ok, I might be narrowing in...

My gallery is in:

/var/www/gallery.blah.com

That is where I put gallery-2.3.2-typical-en.zip, and that is where I unzipped it.

Now I have a gallery2 in that /var/www/gallery.blah.com site, but I also have files like bootstrap.inc, install/, main.php, index.php. Those could be from an old upgrade several years ago, or perhaps that is where they should be?

Should gallery2/ be in /var/www/gallery.blah.com, or should everything be unzipped into /var/www/gallery.blah.com instead?

(Interestingly, files like index.php and main.php have 2008 dates in both directories...

/Sean

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2014-04-29 22:58

you would need to extract to /var/www/gallery.blah.com overwriting the old installation.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
seanb724

Joined: 2005-02-16
Posts: 18
Posted: Wed, 2014-04-30 00:20

So:

unzip gallery-2.3.2-typical-en.zip -d /var/www/gallery.blah.com/

Seems to unzip everything to /var/www/gallery.blah.com/gallery2/

I've got main.php and index.php in both /var/www/gallery.blah.com/ and /var/gallery.blah.com/gallery2, and don't know which I should have.

Either way when I go to gallery.blah.com, I don't get the update wizard. Nor does it appear to be in maintenance mode even though I set:

$gallery->setConfig('mode.maintenance', true);

in the following file:

config.php -> /etc/gallery2/config.php

(And before that was just config.php, local to /var/www/gallery..blah.com, not the symbolic link...)

Not sure where to go from here, or how to clean it up.

Thanks for any insight!

/Sean

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2014-04-30 00:29

/var/www/gallery.blah.com/ is your gallery root directory yes?

Directory structure:

  • images/
  • install/
  • lib/
  • locale/
  • modules/
  • themes/
  • upgrade/
  • bootstrap.inc
  • config.php
  • embed.php
  • index.php
  • init.inc
  • LICENSE
  • main.php
  • MANIFEST
  • README.html

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2014-04-30 00:30

/var/www/gallery.blah.com/config.php should contain all of your gallery specifics.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
seanb724

Joined: 2005-02-16
Posts: 18
Posted: Thu, 2014-05-01 18:43

My main problem was that just unziping gallery-2.3.2-typical-en.zip was putting it into a gallery2/ directory in the /var/www/gallery.blah.com directory, not in that directory itself. I sort of restarted with a clean slate and then moved all of that gallery2/ into the /var/www/gallery.blah.com/ directory, then put my config.php back, and went from there. Had a few permission problems along the way, lost some custom css in the matrix theme I had done, etc. (I did make a full copy of /var/www/gallery... just too late.)

I'm 99% back to where I was.

Thanks for the help...

/Sean