|
#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 InstructionsAssuming you will make all new sites available at http://www.example.com/site/{shortname}/ - PUT SOMETHING LIKE THIS IN YOUR APACHE CONFIG:
<VirtualHost *:80>
AliasMatch ^/site/\w+/(.*) /var/www/drupal/$1
DocumentRoot /var/www/drupal/
</VirtualHost>- WARNING: CleanURLs are more difficult to setup and require messy rewrite rules.
- PUT SOMETHING LIKE THIS IN YOUR ./sites/default/settings.php
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!
} - 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.
|