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 (batikweb.com)
  • 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.

drupal_add_domain_localhost

Download Drupal

Download latest drupal from drupal project.

drupal_downloadt

Save and extract to C:\wamp\www

extract_drupal

At the moment I have new folder with name :

drupal-6.14

Rename this folder to drupal .

Setting VirtualHost

Open file :

1. httpd.conf

C:\wamp\bin\apache\Apache2.2.11\conf\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

C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf

Add these lines :

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

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

</Directory>

</VirtualHost>

Save the file.

Start WampServer.

Open http://batikweb.com

I got these error in drupal

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc 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!