How to create multiple sites in my Drupal application?

Drupal gives you the option to have several different sites under one Drupal installation using different databases (or database prefixes) for each site.

Let's say that you have two domains - domain1.com and domain2.com; domain1.com is your main domain and domain2.com is a secondary domain. To create two different Drupal sites for domain1.com and domain2.com, follow the steps below:

  • Step 1. Install Drupal at domain1.com.
  • Step 2. Create a new MySQL database and user. They will be used for the new site domain2.com.
  • Step 3. Create a directory /sites/domain2.com/ inside your main Drupal folder (public_html most probably).
  • Step 4. Copy /sites/default/default.settings.php to /sites/domain2.com/
  • Step 5. Rename /sites/domain2.com/default.settings.php to /sites/domain2/settings.php
  • Step 6. Park domain2.com to domain1.com
  • Step 7. Go to http://domain2.com/install.php and complete a new installation for domain2.com with the Mysql details from Step 2.

That's it! If you want, you can create more Drupal multiple sites following the steps above.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

I get an error when I try to install modules in my Drupal.

If you receive an error message like the one provided below while trying to install a module to...

How to fix the Drupal cron when halted?

If your Drupal cron fails to run then most probably the process is stuck and needs to be fixed...

How to disable comments in Drupal

Very often Drupal (especially outdated versions) has problems with Spam bots which flood its...

What is streaming/broadcasting?

Streaming is a term often used to define the display of video and audio media in real time....

How to display FeedBurner feeds on your website?

FeedBurner provides you with a lot of useful statistics about the usage of your feeds. Using...