[SOLVED] Upgrader appearing (sometimes)

conorboyd

Joined: 2005-03-29
Posts: 166
Posted: Tue, 2005-03-29 01:18

Hi,

I've installed Gallery2 in the root of a subdomain of my main website domain.

I experience different results depending on whether I access Gallery with a www or not.

i.e. if I type http://gallery.ildica.com into my browser, Gallery displays normally.

However, if I type http://www.gallery.ildica.com into my browser, Gallery displays the Upgrader.

This was a fresh install of Gallery 2 Beta 1, and when I installed it, I was browsing to www.gallery.ildica.com.

My host support person reckons there's nothing on Apache which would cause this difference.

Any suggestions?

Many thanks,

Conor
----

Gallery URL (optional): http://gallery.ildica.com
Gallery version: 2
Webserver (with version): Apache
Datatabase (with version): MySQL
Operating system: BSD
Web browser/version: Firefox & IE6

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-29 03:30

have you run the installer more than once? this would make sense on a multisite install, but shouldn't happen otherwise.
if you see "switch ($galleryId)" near the top of your config.php then you have a multisite config.php, meaning it may actually be using a different configuration (database, g2data dir) for www... and gallery.. and one may have been upgraded while the other was not.

 
conorboyd

Joined: 2005-03-29
Posts: 166
Posted: Tue, 2005-03-29 09:09

Mmmm, yes, it would appear I do have a multisite install config.php.

That certainly wasn't intentional on my part, but I did run the installer more than once.

Would it be easy for you to advise me how to make my config.php "single-site"?

Thanks for your reply, I appreciate it.

Gallery2 looks great BTW!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-03-29 16:51

a multisite config.php actually contains multiple complete single-config.php's, so yes you can make the switch.. first i'd make a backup of the file (just in case you delete the wrong bits).. then i'd look at the g2data setting in each section of the config.php, as you may want to cleanup the unused g2data dir contents. then identify which section of config.php is your active site. finally, whittle down config.php to contain just the single-config that you want.. it will start with "<?php" right after "case 'something':" or after "default:", and end with "?>", right before "<?php" and "break;" on the next line.
so, when you're done the first line of config.php should be "<?php" and the last line should be "?>" with no spaces or blank lines after it.

 
conorboyd

Joined: 2005-03-29
Posts: 166
Posted: Tue, 2005-03-29 18:32

Okay, thanks for that. I'll give it a whirl. The other thing I've done is remove the Apache server alias for the www bit; i.e. people can only access my gallery through http://gallery.ildica.com.

THanks for your help, that's been great!