I have no idea how to handle the Gallery2 multisite setup. Would sure be useful if someone could map out an example of the directory structure.
This is what i thought was correct; but don't think it works:
/gallery2 - main code base (about 50M of code)
/ms_gallery
config, index, main, embed.php
/site1_data
/albums
/cache
/plugins
etc.
/site2_data
/albums
/cache
/plugins
etc.
this seemed like it made sense; and setting for site1 has "location of Gallery2" as ms_gallery
and that works - but what is it for site2?
I believe that both site1 and site2 need to have their own config, index.php files
so i tried:
/gallery2 - main code base (about 50M of code)
/ms_gallery
/site1
config, index, main, embed.php
/site1_data
/albums
/cache
/plugins
etc.
/site2
config, index, main, embed.php
/site2_data
/albums
/cache
/plugins
etc.
and then set each site's setting for "location of gallery" to /ms_gallery/site1 or 2
now when i go to gallery it wants to run the install again????
Pretty sure if someone simply maps out folders for 2 sites under same drupal install and tells me what they set "location to gallery" to for each i can figure out how to get there,
cheers,
peter....
Comments
got it... i think
so pretty sure my structure #2 above is correct...
when i oringally went through the MS setup for G2 i was confused when they asked for my multisite folder... thinking that was what i have as ms_gallery in #1 above... when in fact they meant site1 folder in #2 above. I set it up that way now and ran through setup again and site1 is working.
my next test is to simply copy the site1 folder to ms_gallery to make a 2nd gallery for site2... i don't want to have to run through setup each time i do a site (and i think a simple structure and table copy should be doable - we'll see in a minute)
maybe just me and the long xmas weekend, but i think G2's setup could be a bit clearer - showing folder tree like i have just done would have made things much clearer... imho..
maybe this will help someone else,
and, just to be complete, i'll post the result of my simple "copy table, copy site1 folder" test for setting up 2nd G2 in my site2.
cheers,
peter....
Peter Lindstrom
LiquidCMS - Content Solution Experts
almost
well my idea of simply copying tables and site1 folder "mostly" works...
my site1 table/folders had a couple albums in it...
when i copy everything site2 now has these and everything looks cool
but when i delete an image or album i get a bunch of errors - although things still seem to mostly work;
new photos/albums that i add and then delete are ok;
my guess would be if i copy a blank set of tables and albums this method would work fine
so, to be complete:
my copy procedure was:
- simply copy g2 tables to db for site2
- which can be done by simply copying the mysql/data files that start with g2 to folder for db for site2 (best to stop sql server first)
- then make a copy of site1 folder in ms_gallery folder and rename to site2
- edit site2 config.php
- set "location of gallery2" in settings for site2 to: /galleries/site2/
think thats it
Peter Lindstrom
LiquidCMS - Content Solution Experts