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)

Updating themes and modules


On any given Drupal site, at least several add-on modules and themes will be used. (I've seen sites with over 300 add-on modules.) It is important to keep those up to date, too.

On any of our sites, we can check at a glance whether or not there are newer modules available by going to Administration | Reports | Available updates.

The process for updating modules and themes is largely the same as performing a site update:

  1. 1. Put all of the sites in maintenance mode.

  2. 2. Download all of the modules and themes that you want to update.

  3. 3. Unpack them and put them into their appropriate locations. We have been placing our contributed modules in sites/all/modules/contrib/ and our themes in sites/all/themes/.

  4. 4. Run update.php as we did before.

  5. 5. Bring all of the sites back out of maintenance mode.

This is the normal workflow for updating, and you can refer back to the Updating Drupal section for details.

Often the updates can be done from the command line, should you so desire...