My favorites | Sign in
Project Logo
                
Search
for
Updated May 25, 2007 by schuyler1d
Labels: Featured, Phase-Deploy
Installation  

#How to install and setup Drupal to use multisite-manager drupal creator

NOTE: This Google code site is deprecated. The current project now resides at: http://drupal.org/project/multisite_manager

Install Instructions

Assuming you will make all new sites available at http://www.example.com/site/{shortname}/

  1. PUT SOMETHING LIKE THIS IN YOUR APACHE CONFIG:
  2.   <VirtualHost *:80>
        AliasMatch ^/site/\w+/(.*) /var/www/drupal/$1
        DocumentRoot /var/www/drupal/
      </VirtualHost>
  3. WARNING: CleanURLs are more difficult to setup and require messy rewrite rules.
  4. PUT SOMETHING LIKE THIS IN YOUR ./sites/default/settings.php
  5. or better at ./sites/www.example.com.site/settings.php
      $requri = explode('/', request_uri());
      if (sizeof($requri) >1 && $requri[1]=='site' && $requri[2] != '') {
        $my_site_base = $requri[2];  
        #this will be the database shared between the main site and the shared sites
        $db_url = 'mysql://username:password@localhost/database';
        $db_prefix = $my_site_base."_";
        $base_url = "http://www.example.com/site/$my_site_base";  // NO trailing slash!
      }
  6. Any modules required for profile selections must be installed on BOTH the main site's modules directory AND the subsidiary site module directory (a symlink will do just fine); the former in order to install, the latter in order to run.

Sign in to add a comment
Hosted by Google Code