WebFaction
Community site: login faq

Drupal has the ability to serve multiple sites from a single Drupal installation. How can I do that here at WebFaction?

asked 18 Nov '11, 17:22

seanf
12.2k41836
accept rate: 37%

When you are creating the sites on WebFaction, do you put in a url of / for each one?

(18 Nov '11, 18:08) Pathfinder

Yes, the instructions below assume you are serving multiple sites each from the root of their respective domain.

(18 Nov '11, 18:11) seanf

Awesome question as usual, Sean! ;)

Here's how you can serve multiple sites from a single Drupal app on our platform, starting from scratch:

  1. Create a new Drupal app in the control panel (we'll use "drup" as the app name in this example).
  2. Add your domain (eg domain.com) to the control panel.
  3. Add a site to serve your Drupal app on the domain.
  4. Wait a couple of minutes.
  5. Go to http://domain.com in your browser to set up the first site.
  6. For each additional domain:
    1. Add the additional domain (eg otherdomain.com) to the control panel.
    2. Create a new MySQL database in the control panel and make a note of the database name and password.
    3. Create a new site in the control panel to serve the Drupal app from the beginning of this procedure on the new domain.
    4. SSH into your server and run the following commands:
      mkdir ~/webapps/drup/sites/otherdomain.com
      cp ~/webapps/drup/sites/default/default.settings.php ~/webapps/drup/sites/otherdomain.com/settings.php
      
    5. Go to http://otherdomain.com in your browser to set up the site, provding your database info when prompted.

That's all there is to it - have fun!

permanent link

answered 18 Nov '11, 17:22

seanf
12.2k41836
accept rate: 37%

edited 18 Nov '11, 17:24

Thanks alot for the steps.

(11 Dec '14, 04:09) Ibn Saeed
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×63
×13

question asked: 18 Nov '11, 17:22

question was seen: 3,048 times

last updated: 11 Dec '14, 04:09

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM