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)

Configuring a server (without VirtualBox and Vagrant)


In the previous section we create a virtual server from an existing profile. This made it easy to get an entire server environment configured and running without dealing with the nuances of configuration.

But this is often not an option. Sometimes it is necessary to configure a server manually. This part of the chapter covers manual configuration. Here we walk through the following setup:

  • Mapping domain names to IP addresses

  • Setting up a webserver (specifically Apache)

  • Configuring MySQL

This is a book about building a website, not necessarily about administering a server, so in these sections we will cover only the basic requirements. If you are building production servers, you are encouraged to find other resources more specific to server administration. That said, the following pages should help you prepare a basic server environment.

First, we will look at networking and domain names—a crucial part of our multi-site configuration—then we will move on to web server configuration. By the end of the chapter we will be ready to install Drupal itself.