(Tutorial) How to install multiple sites on a single Drupal Installation on Lampp/Apache?

DRUPALRANCH Newsletter:

Tutorial : How to install multiple sites on a single Drupal Installation on Lampp/Apache?

Often with your impressive Drupal installation, you would wish to run multiple sites on a single code base, each independent enough to look like an indepedent site and an independent domain name. As an example, look at the sites www.mplstutorial.com and www.programmingbulls.com installed on the same code base and single drupal installation.

Therefore, www.site1.com would become one site and www.site2.com would become another on a single Drupal installation.

Steps are simple (assuming you are running Drupal 5):

1. You create a settings.php file in the following directory for each domain name.

sites/site1.com/setttings.php and sites/site2.com/settings.php.

Therefore, we would have directory for 2 domain names (www.site1.com and www.site2.com).

If site1 was the first site that you installed and you had settings.php for this site in sites/default/settings.php, you can let this site remain at default directory and continue to add more settings.php files to sites directory using the domain name. Therefore, in this case, you would have sites/default/settings.php and sites/sites1.com/settings.php.

Read more..

Courtesy : Programmingbulls.com



Tag Cloud