Book Image

Drupal 7 Multi Sites Configuration

Book Image

Drupal 7 Multi Sites Configuration

Overview of this book

Drupal is one of the most powerful PHP Content Management Systems there is. However, why would you install a CMS for every site you build? With just one copy of Drupal you can host several sites. Drupal has long had multi-site support, and Drupal 7's support is even better than previous versions. Drupal 7 Multi-Sites Configuration will teach you how to host several websites on a single copy of Drupal. You will learn how to create different sites, each with its own domain, content, and theme. This valuable information will help you to save time by managing modules and sharing them across several sites as well as administering your sites all in one place.This book will show you how to configure a system for multi-site, and then install several sites on one copy of Drupal, all with their own domain name and database. Learn how to install and share modules and themes, configure Apache, PHP, and MySQL for multi-site, and then manage the site. Once your site system is successfully set up, discover some of the advanced configurations possible with Drupal multi-site, as well as how to upgrade and maintain your sites.
Table of Contents (11 chapters)

From one site to many


In the earliest days of the web it was assumed that each web address (www.example.com) would map to a specific physical server with a specific IP address. This server would be named "www" and its principal purpose would be to serve web pages for a single website. And when the Internet was still relatively young, this was a safe assumption. But the web became far more popular than originally expected, and it experienced explosive growth. One thing that became clear during this period of growth was that it is tremendously useful to be able to run more than one website on a single piece of hardware.

Web servers adapted, adding the capability to map a single IP address of a single server to more than one domain name. So, for example, a single piece of server hardware could handle both www.example.com and www.anotherexample.com. Many web hosting providers thrived (and still do) by hosting multiple customers' sites on a single physical server.

Over the last decade and a half, server technologies have become more sophisticated. Virtualization of servers, cloud computing, distributing one site over multiple servers, and edge-side caching are just a few of the technologies that have changed the landscape. The initial assumption that one server would host one website has long-since passed away.

Historical reasons have led to the development of multi-site technologies, but for what reasons do people run multi-site installations? And how do you know when you need one?