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)

Chapter 3. Settings, Modules, and Themes

In the previous chapter we installed three sites into our one Drupal multi-site, but we did not configure any of these three. In this chapter we will look at configuring Drupal, with a special focus on using Drupal modules and themes. In particular, we will see how Drupal can share modules and themes when we want, but also keep certain modules and themes restricted only to a specific site. We will cover the following:

  • Configuring each site separately

  • Sharing configurations

  • Installing shared modules

  • Installing unshared (single-site) modules

  • Installing themes and subthemes

Configuring sites

We wrapped up the last chapter by running the Drupal web installer for all three sites, giving each its own database, site name, and configuration. In this chapter we will pick up where we left off.

The important thing to be aware of, given our multi-site configuration, is that each site will have completely distinct settings.

In Drupal, there are typically two places where...