Multiple sites... Same files

rincewind

Joined: 2007-06-26
Posts: 13
Posted: Tue, 2007-06-26 08:43

The following information is required to get an answer:
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): localhost?
Gallery version: 1.5.6
Apache version: 2 something
PHP version (don't just say PHP 4, please): 4.4.7-p8-gentoo
Graphics Toolkit:
Operating system: Linux
Web browser/version (if applicable): FF2, IE7 etc etc etc..

Hello,

I've got this web server that has multiple DNS:es to it (only on my local lan though). The sites uses the same gallery files for all of the sites via softlinks in linux.
When I try to browse to the default of the sites the gallery show nicely.
Yet when I surf to another site i get the "Gallery needs Reconfiguration" windows. Thats odd because
the files are the same.

Does anyone have a clue how to fix this?

Regardz,
-- Rincewind

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-06-26 08:52

Hello Rincewind (btw, i love that game !)

Gallery 1 includes files via the the absolute path.
So as far a i know softlink doesnt work. As Gallery still tries to include files (in your example the config.php) from the real location.
But actually they are not there.

Gallery 2 has a real multisite feature.

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6

 
rincewind

Joined: 2007-06-26
Posts: 13
Posted: Tue, 2007-06-26 09:07

Hehehe thanks for the greet, read the books, there nice=)..

What if I have the absolute path to the dir that is symlinked then?
In my
/mysites/computer1/htdocs/gallery <-- Softlink
/mysites/computer2/htdocs/gallery <-- Softlink

and the gallery is in
/data/gallery <-- Normal path and is the dir that is softlinked to.
And then type in /data/gallery to config.php?

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Tue, 2007-06-26 09:13

puuuh, i dont know.

Try it ;-)

Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6