Multisite Drupal with multisite embedded G2
|Posted: Fri, 2007-12-21 14:53|
I have a VPS with full root access. What I want to achieve is virtual hosts (www.example1.com, www.example2.com), each running Drupal with the G2 module. I want each site to be independent and not share users, content or albums. I am attempting this with Drupal 5.5 and the 5.x-2.0 Gallery module. First, is this currently possible?
Here is how I configured the server:
http.conf sets the following:
<VirtualHost *:80> ServerName www.example1.com ServerAlias example1.com *.example1.com DocumentRoot "/var/www/example1.com" </VirtualHost> <VirtualHost *:80> ServerName www.example2.com ServerAlias example2.com *.example2.com DocumentRoot "/var/www/example2.com" </VirtualHost>
The directory structure is as follows:
/var/www/drupal (Drupal 5.5 codebase) /var/www/example1.com -> drupal (Symlink to Drupal codebase) /var/www/example2.com -> drupal (Symlink to Drupal codebase)
I did the initial Drupal installation/setup of both virtual hosts. Then I copied the Gallery 2.2.3 codebase to
I ran the Gallery 2 Standard installation by navigating to http://www.example1.com/gallery2/install. Then I ran the Gallery 2 Multisite installation by navigating to http://www.example2.com/gallery2/install, and installed it to
Then I installed the Drupal Gallery module in www.example1.com, and I can see it's albums - Good! Then I installed the Drupal Gallery module in www.example2.com, and I can see the albums from www.example1.com - Bad!
Also, I can get to the standalone www.example2.com albums if I navigate to http://www.example2.com/sites/example2.com/gallery2.
So, this is not the independent installation I need. Am I doing something wrong, or am I just asking too much of the current module? I would be more than happy to help document this sort of installation if I could just understand it.
Thanks for any tips/tricks,