1. Guarantee Web site malware removal (joomla, drupal, wordpress etc) - don't let your business get down due to virus, malware and blacklist problem.
  2. Recommended Web Hosting to help you doing business online with high performance. : Support ioncube, zend and all other hosting by default.
  3. Get free wordpress website transfer : up to 4 domains Find out more .... Click here to see other user testimonial

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

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

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!

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

Related posts:

  1. Step by Step install Joomla with WampServer
  2. Step by step install Expression Engine with WampServer
  3. Step by step move drupal from localhost to drupal hosting : From Localhost to Online
  4. Install drupal in localhost with xampp
  5. Step by Step Install Drupal on Wamp : Add Domain

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

  1. Thanks, this helped :)

    Although you should provide the name of the file where
    “LoadModule rewrite_module modules/mod_rewrite.so” needs to be edited (which I found by googling – httpd.conf in the apache folder).

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 Hosting Formula Suffusion theme by Sayontan Sinha