I've installed Drupal 4.7 and now want to set up multiple site instances using the same base install. To do this, I've created (so far, just) one copy of the /<em>drupal-root</em>/sites/default directory
, and edited the settings within that accordingly.
Here's what I have in /<em>drupal-root</em>/sites/default/settings.php
(some things changed to protect the innocent):
$db_url = 'mysql://*********';
$db_prefix = '';
$base_url = 'http://www.somesite.com';
ini_set('arg_separator.output', '&');
ini_set('magic_quotes_runtime', 0);
ini_set('magic_quotes_sybase', 0);
ini_set('session.cache_expire', 200000);
ini_set('session.cache_limiter', 'none');
ini_set('session.cookie_lifetime', 2000000);
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.save_handler', 'user');
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);
ini_set('url_rewriter.tags', '');
And here's what I have in /<em>drupal-root</em>/sites/foo.bar.com/settings.php
:
$db_url = 'mysql://*********';
$db_prefix = array('default' => '', 'variable' => 'foo_');
$base_url = 'http://foo.bar.com';
ini_set('arg_separator.output', '&');
ini_set('magic_quotes_runtime', 0);
ini_set('magic_quotes_sybase', 0);
ini_set('session.cache_expire', 200000);