Introduction: Adding a Virtual Drupal Site to a Fully Segregated Drupal Farm

Picture of Adding a Virtual Drupal Site to a Fully Segregated Drupal Farm

The Drupal is a Content Management System (CMS). One of its distinguishing features is the ease of managing a number of sites from one codebase - the much vaunted Drupal Farm.

This instructable will be aimed at helping you create a fully segregated site within a drupal farm using commonly available tools such as phpMyAdmin to manage the SQL portion. It is assumed that the reader has basic knowledge of Drupal and Linux, as well as shell access with sufficient privileges.

Step 1: Creating an SQL Database and User

Picture of Creating an SQL Database and User

The first step will be to create an SQL database and user. To do this, go to your phpMyAdmin instance and login.

Next, create the user and database by going to Privileges and selecting Add a new user from the bottom of your user list.

In this window, be careful to select the right settings so you can keep your SQL server secure! Hover over the fields in the image to get an idea of what the right settings should be. To re-iterate them here, select "local" for the host, and generate a password (Do not choose your own, as random passwords are always better).

Once the password is generated, copy it to your clipboard for later use.

Lastly, select "Create database with same name, and grant all privileges" to create the database.

Step 2: Set Up the Drupal Site Settings

Picture of Set Up the Drupal Site Settings

Now it's time to set up the Drupal site.

First, go to your Drupal sites directory.

Copy the default directory to your site name, and create a files directory with appropriate permissions. For this example, we'll use the site "". For rules on how to name the directory, take a look at these Drupal multisite instructions:

# cp -R default
# mkdir
# chown www-data.www-data
# chmod 777

Now, you can use the usual procedure to setup the site.

Beware!If you see errors indicating the "default" settings are being edited, then something is wrong. Recheck your steps until this point.

Step 3: That's It!

Go about the other steps in setting your site up, and enjoy!


allweb247 made it! (author)2015-12-17

We are a Canadian Drupal and web development company founded in the summer of 2002. Ever since then we have supplied web solutions to a great variety of Canadian and foreign companies with magnificent results. We are happy to offer free advice and consulting to all of our potential clients.

About This Instructable




More by Tarek_Loubani:Adding a virtual Drupal site to a fully segregated Drupal FarmInstalling a new virtual host in the Apache Web server
Add instructable to: