Posted by thumb on November 15, 2007 at 6:04am
I've been running several Drupal/Gallery embedded sites for a few years now. They weren't easy to set up initially, but I've more than made up for the extra time spent initially with all the time saved by only having two code bases to manage. I initially made use of symlinks to get things to work, but not anymore. I'm curious to know how others have configured multisite environment and their considerations in doing so.
Here's my config:
/var/www/
|
|-gallery2/
|-drupal/
|-sites/
|-all/
| |-modules/
| |-gallery/
|-site1.com/
| |-gallery2/
|-site2.com/
| |-gallery2/
|
...

Comments
Multisite gallery config
I have a gallery2 folder at http://westernchallenge.org
I need to set up some multisites and have contemplated using symlinks.
I am on an Apache/linux/mysql platform with Cpanel
What is your re-direct app and how does it work?
Have you tackled multisite drupal with multisite gallery2?
Hi. I was able to get a single drupal install working with gallery, however, I have not been able to figure out how to do a multisite drupal install that has embedded multisite gallery.
For example, i have a multisite drupal with two sites:
And i have a multisite gallery along the same lines (gallery.example1.org, gallery.example2.org).
Have you been able to get a configuration for this to work?
Thanks.
...alex...
Single-site drupal with multisite G2
Like Tango, I'm having a real tough time getting G2 to work cleanly in Drupal.
Here's my structure:
I've turned on and off cleanurls in Drupal and rewrites in G2 per the documentation.
The gallery module keeps saying my G2 install is outside of the root directory! (it's not)
URLs come out PAINFULLY mangled: http://www.bouldermountainfire.org/index.php/gallery/v/webcam2.jpg.html?...
(instead of: http://www.bouldermountainfire.org/gallery/v/webcam2.jpg.html)
Here's the config settings in the drupal module:
Please check out my gallery at: www.bouldermountainfire.org/gallery and let me know what I can do to make this work.
Thanks,
Dave
PS: ~/www = /home/kabalnet/public_html/
Multisite install in a nutshell
Here's my best shot at writing instructions, as I'm involved in setting up a multisite Gallery/ multisite Drupal and its still fresh in my mind.
www/example.com/ <-- Drupal root site [Holds #1 .htaccess]
www/example.com/gallery2/ <--untar full Gallery2 here, and name the folder 'gallery2' if it isn't already. Gallery2 core lives for all sites here.
www/example.com/sites/all/modules/gallery <-- is the Drupal Gallery2 module installed, for all sites, installed outside of core. The name 'gallery' is reserved for this module.
www/example.com/sites/example.com/files <-- your site's FILES folder, and make certain FILE SETTINGS are '/sites/example.com/file'
www/example.com/sites/example.com/tmp <-- TEMP folder, and make certain TEMP SETTINGS are '/sites/example.com/tmp'
www/example.com/sites/example.com/g2data <--- where you tell Gallery2 your multisite lives for your site (but not its photo data) [Holds #2 .htaccess]
not_in_www/your_image_directory/example.com_images <-- where you tell the Gallery2 installer you'll be keeping your images, outside of the www folder.
-- Hope this helps.
Hi SpzToid, Why shouldn't we
Hi SpzToid,
Why shouldn't we tell Gallery that the image files will be in the 'www' folder?
Can you give an example of where it should be?
Thanks for your instructions! Really really helping! :)
EditMy bad, just realised that this is because Gallery says not to for security reasons! Will it have any problem working if the directory were web-accessible?/edit
The problem with having your
The problem with having your pictures in a web accessible folder is that someone can link or view the files directly and not go through gallery. So you would have any permissions you set in G2 apply.