This blog post will guide you through the process of creating multisite on localhost. I usually have a couple of drupal installations in my laptop one for each branch of modules that i maintain and rest for testing new drupal themes and modules. I wanted to avoid downloading / upgrading the redundant copy of drupal core so i decided to give a try to drupal multisite feature.
Lets take my GSoC quiz module as an example to explain this. We quiz module developers support branch quiz 3.x and 4.x at the time of writing this blog post. I would like to have quiz-3.x installation at http://quiz3dev and 4.x at http://quiz4dev.
Note: There is no .com or .net domain. It is in local host and similar to http://localhost
The LAMP stack used here is Ubuntu 9.10, PHP 5.2 and Apache 2.x. My Apache's document root is at /home/sivaji/Public/ and the version of drupal that we will be using here is drupal 6.x.