Step by Step Install Drupal on WampServer : Vhost and Clean URL

In previous post I have talk about fix ereg() problem that show up when I use wampserver that utlize php 5.3.0.

I’ll continue with vhost feature in Wampserver that asked by a reader via contact form. I try to explain that thing first.

VirtualHost is a special feature in apache that allow us to host multiple domain in single IP address.

I’ve set 2 domain in the past :

  1. winhows.net
  2. batikweb.com

those url use same IP which is : 127.0.0.1

First URL (winhows.net) don’t add a entry in httpd.conf or httpd-vhost.conf but second URL (batikweb.com) available after add entry in httpd-vhost.conf .

<VirtualHost *:80>
ServerAdmin alam@batikweb.com
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>

How about clean url feature in drupal ?
Let me continue drupal installation first as I’ll show it in step by step.

Continue Install Drupal

-> Choose Language

Click Install Drupal in English

I have this error :

Requirements problem

The following error must be resolved before you can continue the installation process:

The Drupal installer requires that you create a settings file as part of the installation process.

  1. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.
  2. Change file permissions so that it is writable by the web server. If you are unsure how to grant file permissions, please consult the on-line handbook.

More details about installing Drupal are available in INSTALL.txt.

Please check the error messages and try again.

Solution :

Go to folder : C:\wamp\www\drupal\sites\default

change file with name : default.settings.php to settings.php .

Open settings.php and edit the entry, specially these lines :

$db_url = ‘mysql://root:typenewpasswordhere@localhost/drupal’;
$db_prefix = ”;
$base_url = ‘http://batikweb.com’;  // NO trailing slash!

-> Setup database

drupal db Step by Step Install Drupal on WampServer : Vhost and Clean URL

Fill every information correctly and click ‘Save and continue

I got this error message :

The following error must be resolved before you can continue the installation process:

Failed to select your database on your MySQL database server, which means the connection username and password are valid, but there is a problem accessing your data. MySQL reports the following message: Unknown database ‘drupal’.

  • Are you sure you have the correct database name?
  • Are you sure the database exists?
  • Are you sure the username has permission to access the database?
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
Solution :
Open phpmyadmin from address : http://batikweb.com/phpmyadmin/
drupal db list Step by Step Install Drupal on WampServer : Vhost and Clean URL

It seem that database ‘drupal‘ don’t exist, I must create it first.

go to right side of phpmyadmin and create database ‘drupal‘.

create drupal db Step by Step Install Drupal on WampServer : Vhost and Clean URL

After create database ‘drupal‘ retry drupal installation process.

This time it work and I got this screen :

configure drupal install1 Step by Step Install Drupal on WampServer : Vhost and Clean URL

Your system configuration does not currently support this feature.

Solution :

drupal rewrite Step by Step Install Drupal on WampServer : Vhost and Clean URL

uncoment line 116 into this form :

LoadModule rewrite_module modules/mod_rewrite.so

save file and restart wampserver.

Refresh the page and you should see this

drupal clean url enabled Step by Step Install Drupal on WampServer : Vhost and Clean URL

Save and continue.

you should see this message :

Drupal installation complete

Congratulations, Drupal has been successfully installed.

You may now visit your new site.

Great.

I enter email address that I set in previous install ( install mailserver on localhost) and I got this message in my mailbox :

batikweb,

Your account at batikweb.com has been activated.

You may now log in by clicking on this link or copying and pasting it in your
browser:

http://batikweb.com/?q=user/reset/1/1259079134/759feb1dd7ce8e0c5fafcca4251c0ad6

This is a one-time login, so it can be used only once.

After logging in, you will be redirected to
http://batikweb.com/?q=user/1/edit so you can change your password.

Once you have set your own password, you will be able to log in to
http://batikweb.com/?q=user in the future using:

username: batikweb

Install process goes smooth.

See you in other article, stay health!

Related Reading:

Using DrupalUsing Drupal

With the recipes in this book, you can take full advantage of the vast collection of community-contributed modules that make the Drupal web framewo... Read More >

Drupal For DummiesDrupal For Dummies

Learn to set up, manage, and administer a Drupal Web site

Drupal offers unparalleled flexibility for content-managed Web sites, but most ... Read More >

Pro Drupal Development, Second EditionPro Drupal Development, Second Edition

Widely praised for its in–depth coverage of Drupal internals, bestselling Pro Drupal Development has been completely updated for Drupal 6 in thi... Read More >

Front End Drupal: Designing, Theming, ScriptingFront End Drupal: Designing, Theming, Scripting

“For Drupal to succeed, we need books like this.”

–Dries Buytaert, Drupal founder and project... Read More >

Cracking Drupal: A Drop in the BucketCracking Drupal: A Drop in the BucketThe first book to reveal the vulnerabilities and security issues that exist in the sites that have been built with Drupal?and how to prevent them from... Read More >

Thanks for reading, if you think this post help you please consider to buy me a beer

Search Terms :

  • How to install Drupal on Wamp server
  • install drupal on wamp server
  • installing drupal on wamp server
  • wampserver drupal
  • install drupal wamp server
  • Failed to select your database on your MySQL database server which means the connection username and password are valid but there is a problem accessing your data MySQL reports the following message: Unknown database
  • drupal wampserver database install problem
  • Failed to select your database on your MySQL database server which means the connection username and password are valid but there is a problem accessing your data MySQL reports the following message: Unknown database root
  • step by step process how to install drupal on localhost using wamp server
  • drupal wamp server
  • drupal wampserver
  • how to configure drupal in wamp server
  • wamp drupal directory not writable
  • drupal wamp virtualhost
  • drupal virtualhost
  • multihost wamperver www drupal wordpress
  • installation of drupal on wamp server
  • drupal apache2 virtualhost rewrite clean URLs
  • drupal vhost
  • wampserver drupal wampserver default mysql database user
    • Share/Bookmark
    Step By Step

    If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

    Comments

    One Response to “Step by Step Install Drupal on WampServer : Vhost and Clean URL”

    Leave Comment

    (required)

    (required)