Multisite configurations

Events happening in the community are now at Drupal community events on www.drupal.org.
thumb's picture

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

russgri's picture

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?

__Tango's picture

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

dkabal's picture

Like Tango, I'm having a real tough time getting G2 to work cleanly in Drupal.

Here's my structure:

  • ~/www/gallery2/ (multisite codebase for G2)
  • ~/www/bouldermountainfire/ (root for drupal = www.bouldermountainfire.org)
  • ~/www/bouldermountainfire/sites/default/gallery2 (site install, not symlink)

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)

Your location settings are valid, but your Gallery2 is installed outside the Drupal root directory. It is highly advisable to move G2 into the Drupal folder or to create a symbolic link in the Drupal directory pointing to your G2 installation (see instructions on codex.gallery2.org).

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)

  • URL rewrite in G2 = "gallery/v/%PATH%" per the the instructions.

Here's the config settings in the drupal module:

  • /site/default/gallery2/ = URL or URI (I previously tried just /gallery2 before I read the instructions carefully, the result was the same)
  • ~/www/default/gallery2/ = file system path

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

SpzToid's picture

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

ThomasRedstone's picture

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

lvthunder's picture

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.

Gallery2 Integration

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: