O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Drupal 7 Multi-sites Configuration

Book Description

Run multiple websites from a single instance of Drupal 7 with this book and ebook.

  • Prepare your server for hosting multiple sites
  • Configure and install several sites on one instance of Drupal
  • Manage and share themes and modules across the multi-site configuration
  • Use the hashtag #PacktDrupalMS on Twitter to discuss the book with the author, fellow readers, and Packt.

In Detail

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

  1. Drupal 7 Multi-sites Configuration
    1. Drupal 7 Multi-sites Configuration
    2. Credits
    3. About the Author
    4. About the Reviewers
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Errata
        2. Piracy
        3. Questions
    7. 1. Multi-site Drupal
      1. Drupal is a multi-site Content Management System
      2. From one site to many
      3. Why multi-site?
        1. Running different software on the same site
        2. Making the most of shared hosting
        3. Easing server administration
        4. Staging or testing before deploying to a live site
        5. Sharing a single code base
        6. Running secure and standard (unsecured) tools on the same server
        7. Efficient development
      4. Drupal and multi-site
        1. A quick guide to choosing the right multi-site configuration
      5. Setting up a server
      6. Installing a Drupal Virtual Machine with Vagrant
        1. Installing our tailored Vagrant project
        2. Basic configuration for this book
        3. Connecting to the new Virtual Machine
      7. Configuring a server (without VirtualBox and Vagrant)
      8. Domain names and IP addresses
        1. Using a hosts file
      9. Web servers
        1. Apache
        2. Configuring Apache for a Drupal Multi-site
        3. A note on using virtual hosting for each domain
      10. Configuring MySQL
      11. Summary
    8. 2. Installing Drupal for Multi-site
      1. Manual setup
      2. Downloading Drupal
      3. Installing the first host
        1. Telling Drupal about our sites
        2. Creating a site folder
          1. Domain name directories
          2. Domains with subdirectories
          3. The sites.php special configuration file
        3. Settings
        4. The files/ folder
        5. The web installer
      4. Creating the other sites
      5. Getting installation help
      6. Summary
    9. 3. Settings, Modules, and Themes
      1. Configuring sites
        1. Creating a shared configuration file
          1. A word of warning about sharing settings
      2. Configuring modules
        1. Sharing modules
        2. Unshared modules
          1. A note on using different versions of the same module
        3. Modules and sharing (in summary)
      3. Themes
        1. Subthemes and sharing
      4. Summary
    10. 4. Updating Multi-site Drupal
      1. Updating Drupal
        1. Making backups
          1. Filesystem backups
          2. Database backups
        2. Putting Drupal in maintenance mode
        3. Downloading and installing Drupal
          1. Fetching a new version
          2. Overwriting the existing files
          3. Checking the default.settings.php file
        4. Running update.php
        5. Taking the sites out of maintenance mode
      2. Updating themes and modules
        1. A minor complication
      3. Summary
    11. 5. Advanced Multi-sites
      1. Favicons and robots
      2. Shared authentication
        1. OpenID and other authentication services
        2. LDAP and Directory services
        3. Using the Services module
        4. Using Bakery for SSO
        5. Sharing a user database
      3. Shared content
        1. Sharing content with Services and Deploy
        2. Domain Access as a multi-site alternative
        3. The Virtual Site module
      4. Shared structure
      5. Searching across sites
      6. Summary