This forum is no longer active. Please post your questions to our new community site

Forums Drupal

Drupal Multisites confusion

Subscribe to Drupal Multisites confusion 8 post(s), 2 voice(s)

Avatar the technaddict 8 post(s)

Quick versions of the questions I’ve just posted and lost….

When setting up a second site in drupal (Bitnami stack on ubuntu 10.10) – lets call it devone.local – do I need to:

1 – add anything to /etc/hosts
2 – enable the inclusion of the virtual host files by uncommenting a line in ~/drupal-6.19-0/apache2/conf/httpd.conf so that it looks like this:

  1. Virtual hosts
    Include conf/extra/httpd-vhosts.conf

3 – edit the file included to look something like this:

NameVirtualHost *:8080


  1. VirtualHost example:
  2. Almost any Apache directive may go into a VirtualHost container.
  3. The first VirtualHost section is used for all requests that do not
  4. match a ServerName or ServerAlias in any block.
    <VirtualHost *:8080>
    DocumentRoot “/home/myusername/drupal-6.19-0/apache2/htdocs”
    ErrorLog “logs/error.log”
    CustomLog “logs/access_log” common

<VirtualHost *:8080>
DocumentRoot “/home/myusername/drupal-6.19-0/apache2/htdocs”
ServerName devone.local
ErrorLog “logs/devone.local-error.log”
CustomLog “logs/devone.local-access_log” common

using port 8080 because httpd.conf has a listening clause naming this port

and then setting up subdirectories and databases as usual for a drupal multisite?

At least this is what I have done and its not worked – so what have I done wrong!!!! Kind words only please!


Avatar the technaddict 8 post(s)

By the way – the number 1 in 1.Virtual hosts / Include conf/extra/httpd-vhosts.conf should be a ‘#’ hash – I didn’t realise there’s some kind of wiki markup going on

Avatar Beltrán Rueda Administrator 3,714 post(s)


maybe this guide helps you. This guide did not use VirtualHosts, it uses alias.…

Avatar the technaddict 8 post(s)

Thanks Beltran.

We seem to be talking at cross purposes – Drupal can serve more than one site from the same instance of code – the link appears to be talking about more than one instance of the Bitnami Joomla Stack -

I can’t find any definitive tutorials or complete posts on how to set up Drupal multisites on the Bitnami Drupal Stack

Avatar Beltrán Rueda Administrator 3,714 post(s)

Maybe this post could help you…

Avatar the technaddict 8 post(s)

Thanks agian for your prompt reply – I have seen that post and I can’t see the answer to my questions…

perhaps rephrasing one at a time:

Where do I configure Virtual Hosts in the Bitnami stack?

Avatar the technaddict 8 post(s)

OK so finally I have it working and I’m not sure what I was doing wrong in the first place!

Here’s what I did right:

1 – added host to /etc/hosts

2 – enabled the inclusion of httpd-vhosts.conf

3 – added a virtual host:

NameVirtualHost *:8080

<VirtualHost *:8080>
DocumentRoot “/home/[username]/drupal-6.19-0/apps/drupal/htdocs”
ServerName [sitename]
RewriteEngine On
RewriteOptions inherit

where things in [ ] are to be replaced

4 – added the database and db user

5 – copied the default directory to a directory with the same name as my site, edited the settings to give the new db connection string and


Avatar Beltrán Rueda Administrator 3,714 post(s)

I’m glad to hear this. Thanks for posting the solution.

Forums Drupal