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)

Searching across sites


The last topic to cover in this chapter is site search. The core Drupal server comes with a built-in search engine. This engine can index all of the content on a site, allowing visitors to search for content.

Because it stores all of its information in the database, each Drupal site in a multi-site setup can have its own search engine.

But what if we want to provide a single search instance that can search content across all of our sites? In this case, when a user searches on our fabled books.local site, that user would see looks.local and cooks.local content as well.

This particular form of cross-site searching cannot be done with the built-in search engine. However, since Drupal's search is pluggable, we can use an add-on module to provide this service.

The most popular search engine alternative for Drupal 7 is the Apache Solr module (http://drupal.org/project/apachesolr). This module relies on an external Apache Solr server (http://lucene.apache.org/solr/) to...