How to setup multi-sites for Drupal 6 and Drupal 7

Setting up a multi-site for Drupal can be beneficial in several ways. Multiple Drupal sites are sharing the same codebase. This makes updating Drupal modules simpler since you only need to do it once for all the sites in the multi-site installation. Each site has its own database, theme and unique modules. Here is a tutorial on how I set up a multi-site installation for Drupal 6. The procedure is much the same for Drupal 7. I’m using a managed VPS with LAMP stack, cPanel and WHM. (Web Hosting Manager) Also: CentOs 4.7/Apache 2.x/mySQL 5.0/PHP 5.2
Main site:
Site 3:
Main site:
User: swdca
Db: swdca_dbname
User: swdca_dbname
Pswd: mypassword
1. Create main Drupal site per usual – this is the default site. Make sure it has your contact info on the home page since this page will display if any of the subsites fail.
2. Go into cpanel on Main site: and park the domains for the other domains on your main domain. Note: On my VPS I needed to park the domains via WHM. It didn’t work via my main site cpanel.
3. Go to Main site:
With permission 777
4. Copy /sites/default/default.settings.php to /sites/
And rename it to settings.php and give it permission 777
Do the same for
5. Say you want to have its own unique theme. Unique themes go in this folder; /sites/
6.  You will have a separate database for every site so you can activate different modules for each site. To share modules between the sites, put them in sites/all/modules in the main site. Then let each site switch them on or off.
Put unique modules in /sites/
7. Maintenance
You have one copy of the code so put all the sites offline before updating the code. You have a database for every site so run update.php on every site before switching the sites back online.
8. Which site goes first?
The first site is locked in place while any other sites are parked on top. Use a throwaway site for the first site.

For example: When I registered, I registered the .biz and some other variations for experiments. I used the .biz domain name as the base site for the multisite setup because the .biz domain name will not be visited by anyone but me. Each time I load a new theme into /sites/all/themes/, I can activate it in for testing. When one of the added on sites becomes too busy for the server, I can move the added on site without disturbing the other sites.
The first site is also the default site your customers will see when there is a setup failure in Drupal or Apache. Put contact information on the first site so people can report failed web sites.
Katy's notes:
For my managed VPS I needed to use Addon domains, not parked domains.
In the domain name registrar for and, set the DNS to your web hosting nameservers.
To set up a subsite on a subdomain:
- Create subdomain
- When setting up a subdomain, cPanel automatically creates a document root with the same name as the subdomain. Be sure to delete this and use public_html as the document root.
Make subdirectory for
- sites/
Make new db, user, pswd for the website. 

Upload default.settings.php to sites/
Rename to settings.php

Upload a robots.txt file to block unwanted traffic.

Your directory and file structure will look like this:

To install your new Drupal subsite on the subdomain: 
Open your browser and point to
The “install Drupal in English” page will come up. Enter your database information.
When updating your Drupal modules in the main site:
-Take all multi-sites offline.
-Upload the new modules
- Run update.php
- Run Cron.
- Check status report.
- Check Available updates report.
Go to each site in the multi-site and run update.php.
Run cron. Check Status report and Available updates reports.
When all is well, put site back online.

Setting up a multi-site installation can save you time. Instead of having to update the same contributed modules in several different websites, you can update the main site and have all the subsites updated at the same time. The downside is that all the sites in your multi-site installation will be down at the same time. I recommend to put maximum of 5 sites in a multi-site. This way only 5 of your websites will be down at one time. The multi-site setup also works well if you have several sites that are very similar.


Setting up a multi-site for

Setting up a multi-site for Drupal can be beneficial in several ways. Multiple Drupal sites are sharing the same codebase. This makes updating Drupal modules ehr system simpler since you only need to do it once for all the sites in the multi-site installation. Thanks for the info bro..

Multi-sites set-up for drupal.

Multi-sites set-up really adds benefits to the users. Doing it for drupal, multiple sites can share the same code-base. Great to see the step-by-step guidance for making the set-up for drupal 6! It will surely helpful for the developers. As the drupal 8 is here, so please make an update for the same. A server and data management has been most essential for all type of industries whether it's a textile industry or product development or bank or Construction Company or any other. IT Outsourcing for construction company Century City. Would be thankful to see the multi-sites set-up for drupal 8!


It is a fascinating feature of Drupal sites that they can share a single code base. I actually wanted to know about the concept of multi-site in Drupal. It was totally worth reading the article on setting up of multi-sites in Drupal. 

I've had a drupal multi-site

I've had a drupal multi-site setup working for a few months now, but have always wondered - should I have a directory in sites/ for each of my websites, or just the second one (I only have 2)? Lets say I had a site, for which I just used sites/default/ and sites/all/, then I added a 2nd site, for which I created site Should I also have created sites/ I've read lots of conflicting information about this, but generally, multi-site how-tos don't tell you to create sites/ but maybe they assume you already have?