Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Drupal 7 Multi Sites Configuration
  • Table Of Contents Toc
Drupal 7 Multi Sites Configuration

Drupal 7 Multi Sites Configuration

4.2 (9)
close
close
Drupal 7 Multi Sites Configuration

Drupal 7 Multi Sites Configuration

4.2 (9)

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)
close
close

Chapter 2. Installing Drupal for Multi-site

In the previous chapter we set up a server environment for running Drupal. In this chapter, we are going to install Drupal and create three different sites. We will cover:

  • Downloading and installing the code

  • Creating a default site

  • Adding two additional sites

While we are setting up three sites, there is nothing special about that number. A multi-site can have two or more sites.

Manual setup

When preparing our environment for setting up a Drupal multi-site, we first walked through a setup using a special Vagrant virtual machine profile. Then we looked at the manual configurations necessary for Apache and for MySQL. Specifically, we set up an Apache virtual host capable of listening for all three of our hosts (books.local, cooks.local, and looks.local). Then we created three databases in MySQL: books_local, cooks_local, and looks_local.

Note

It is best to create one database per site. Only when absolutely necessary should you install multiple Drupal sites...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Drupal 7 Multi Sites Configuration
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon