This is an old revision of the document!


multisite setup on debian

the drupal5 package installs drupal in /usr/share/drupal5, with config files in /etc/drupal/5. with a multi-site setup, this is the codebase that will be used by all of the sites. in theory it will be updated by the package-manager.

to make a new site:

  • make a vhost in /etc/apache2/sites-available/new_site
<VirtualHost *>
        ServerAdmin admin@example.com
        DocumentRoot /usr/share/drupal5
        ServerName 127.0.0.1

        <Directory "/"> 
               Options FollowSymLinks
               AllowOverride None
        </Directory>

        <Directory "/usr/share/drupal5">
               Options Indexes FollowSymLinks MultiViews
               AllowOverride None
               Order allow,deny
               allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
        ServerSignature Off
</VirtualHost>

also you need to make a new site config directory in /etc/drupal/5/sites. the easiest way to do this is to copy the “default” site:

cp -r /etc/drupal/5/sites/default /etc/drupal/5/sites/new-site

make sure that both the dbconfig.php and settings.php files are writeable by www-user.

chmod g+w /etc/drupal/5/sites/dbconfig.php /etc/drupal/5/sites/settings.php
  • drupal_notes.1205946320.txt.gz
  • Last modified: 2008-03-19 17:05
  • by 81.188.78.24