Using more than one site in Drupal application.
Drupal allows you to create more than one site under one Drupal installation, but the databases should be different for each site.
Let’s begin with this example – Suppose, we have two domains abc.com and xyz.com, abc.com is your primary domain & xyz.comis your secondary domain. Let’s see how to create two different Drupal sites for abc.com and xyz.com-
1. Install Drual on abc.com domain.
2. Create new MySQL database & user; these details would be used for new site on xyz.com
3. Create a new directory as /sites/xyz.com inside your main Drupal folder i.e. public_html.
4. Copy the file /sites/default/default.settings.php to /sites/xyz.com/
5. Use park feature in cPanel to park domain xyz.com to abc.com
6. Now go to xyz.com/install.php and complete a new installation for xyz.com with the details you have created at point no. 2.
