Multi-Site Setup

Multisite allows you to host multiple websites from a single Drupal codebase. Each individual site has it's own database and configuration. Sites can share modules and themes, or they can be specific to an individual site.

Create another site
Create a directory to hold the site specific files and configuration:

cd /path/to/your/drupal/install
cd sites
mkdir www.mynewsite.com
cd www.mynewsite.com

Copy the default settings.php from a fresh install of Drupal or, if you followed our Drupal instructions, the copy you made of it:

cp ../default/settings-original.php settings.php
chmod ugo+w settings.php

Create modules and themes directories for themes and modules that will be specific to this particular site:

mkdir modules
mkdir themes

Edit your Apache virtual hosts config file, /usr/local/apache2/conf/extra/httpd-vhosts.conf and add a ServerAlias for your subsite to the <VirtualHost> directive for your base Drupal site:

ServerAlias www.mynewsite.com

Create a database for your subsite as per the MySQL configuration instructions.

Alternative Methods
http://justinhileman.info/blog/2007/06/a-more-secure-drupal-multisite-install

Recent Updates

  • 2 years 1 week ago
  • 2 years 1 week ago
  • 2 years 2 weeks ago
    php 8.x
  • 2 years 2 weeks ago
    10.6.7
  • 2 years 2 weeks ago
    Drop Centos 5/6 stuff