I accidently re-installed Gallery 2

Joeho

Joined: 2011-05-22
Posts: 6
Posted: Sun, 2011-05-22 18:19

Hi.
I had a fully functional installation of Gallery 2.3 running on Clark Connect Community edition 5.0 that I installed manually, not with Yum, but it didn't create the thumbnails of uploaded videos correctly, so I tried to install FFmpeg-module with yum.

#yum install ffmpeg.i386
#yum install gallery2-ffmpeg.noarch

I was not really paying enough attention to what I was doing and this is the result....

May 01 08:07:35 Installed: gallery2-matrix - 2.3-15.el5.noarch...
May 01 08:07:36 Installed: gallery2-classic - 2.3-15.el5.noarch...
May 01 08:07:38 Installed: gallery2 - 2.3-15.el5.noarch...
May 01 08:07:39 Installed: gallery2-rewrite - 2.3-15.el5.noarch...
May 01 08:07:39 Installed: gallery2-httpauth - 2.3-15.el5.noarch...
May 01 08:07:40 Installed: gallery2-tile - 2.3-15.el5.noarch...
May 01 08:07:40 Installed: gallery2-ffmpeg - 2.3-15.el5.noarch...
May 01 08:21:38 Installed: libid3tag - 0.15.1b-5.el5.i386...
May 01 08:21:39 Installed: imlib2 - 1.3.0-6.el5.i386...
May 01 08:21:39 Installed: gsm - 1.0.12-4.el5.i386...
May 01 08:21:39 Installed: libdc1394 - 2.0.2-1.el5.i386...
May 01 08:21:40 Installed: ffmpeg-libs - 0.4.9-0.52.20080908.el5.i386...
May 01 08:21:41 Installed: ffmpeg - 0.4.9-0.52.20080908.el5.i386...

So today when I went to the gallery website, I was greeted by the 2.3 installer...
My G2data folder is still intact and all, and I don't really want do anything until I know what is best to do in this situation.
I know that I re-installed Gallery but I don't know yet what has been overwritten or how much damage has been done.

So please if anyone knows what I can do to hopefully avoid reconfigure my gallery, please let me know.

Running the installer again is maybe not a big deal as long as I don't have to upload everything again, but I know so little about how Gallery2 works so I don't want to take any chances.

Any help is greatly appreciated.

/Joe

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2011-05-22 18:53

check that the DB still has your g2 data and edit gallery2/config.php to point to the appropriate database and g2data

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Joeho

Joined: 2011-05-22
Posts: 6
Posted: Mon, 2011-05-23 08:20
suprsidr wrote:
check that the DB still has your g2 data and edit gallery2/config.php to point to the appropriate database and g2data

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

All the g2 data is still in the database and config.php has the right database settings.
I was poking around a bit in the different config files and found one condition which decides if it should redirect to the installer or not:
@$gallery->getConfig('setup.password'))
/* If they don't have a setup password, we assume that the config.php is empty and this is an
* initial install

But I do have a password in my config.php so I don't know why it is still sending me to the installer page.

Can I maybe just delete or move the Install folder from the Gallery2 folder?

Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-05-23 11:03

gallery also redirects if g2data/versions.dat is missing or not readable.
try:
chmod -R 0777 /full/system/path/to/g2data

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Joeho

Joined: 2011-05-22
Posts: 6
Posted: Mon, 2011-05-23 13:06
suprsidr wrote:
gallery also redirects if g2data/versions.dat is missing or not readable.
try:
chmod -R 0777 /full/system/path/to/g2data

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

I tried that, it didn't work. I also tried to rename the Install directory to something random, but it still didn't work :(

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-05-23 22:03
 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Tue, 2011-05-24 03:17

Did you actually make sure you do have a versions.dat file?

 
Joeho

Joined: 2011-05-22
Posts: 6
Posted: Tue, 2011-05-24 08:06
alecmyers wrote:
Did you actually make sure you do have a versions.dat file?

Yes I did, versions.dat looks like this:

1.3.0
2.3

suprsidr :
I will take a look at the link.

Thanks guys for your help.

/Joe

 
Joeho

Joined: 2011-05-22
Posts: 6
Posted: Sun, 2011-06-12 18:26

Hello again.
I found a way to avoid the installation page, I renamed gallery2.conf in the Apache conf.d/ directory, which made the server to redirect all traffic from http://server/gallery2 to the new installation which is located in /etc/gallery2 instead of my old one(/var/www/http/gallery2)

So far so good, but now when I access my gallery, no graphic nor background colors are shown. Just like a plain html website, my images though are shown, so in a way the gallery works :), but it looks really ugly.
I don't know if there is any point trying to fix this installation or if I should just try yo switch to the other one.
What do yo think?

Thanks for your time.

Screenshot:
http://bayimg.com/daIHeaAdj

 
Joeho

Joined: 2011-05-22
Posts: 6
Posted: Tue, 2011-06-14 16:17

I found out what it was, just had to fix the config.php a little bit and now it works perfectly.