Step by Step Install Drupal on Wamp : Add Domain

After reading my post about howto install drupal  in localhost with xampp I receive email from a reader via contactform ask me to post about install drupal on Wamp with other facility such as :

  • Fake domain (
  • Clean url feature
  • Send Email ability
  • VirtualHost support

Well, I try to make his wish come true 🙂

Add Domain

I adopt the same way as I use for my tutorial on how to add domain on wordpress.


Download Drupal

Download latest drupal from drupal project.


Save and extract to C:\wamp\www


At the moment I have new folder with name :


Rename this folder to drupal .

Setting VirtualHost

Open file :

1. httpd.conf


go to line 466 and remove the # in front of the line.

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

Save the file.

2. httpd-vhost.conf


Add these lines :

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot “C:/wamp/www/drupal”

<Directory “C:/wamp/www/drupal/”>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from



Save the file.

Start WampServer.


I got these error in drupal

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\ on line 902

Great, I use latest wampserver that use php 5.3.0 that deprecated function ereg().

The solution is simple, I’ll post it in next post.

Got to go now, stay health!