Installing Drupal 6.12 in Wamp Server

kaayess's picture

Hi all,

This is my first blog at Twincling. In fact, this happens to be my first technical blog! So here's it:

I needed to install the latest stable version of Drupal for my project, Configurable Registration Forms as Drupal Module. The version 6.12 of the CMS was preferably to be installed on the Linux OS, but I decided to try it on WAMP, an Open Source software package containing Apache server, PHP, and MySQL on the Windows platform [ http://wampserver.com/en ].

To my surprise, the installation went extremely smoothly except for a couple of minor glitches. So, here are the steps:

1. Download the tar.gz file of Drupal 6.12 from http://drupal.org/node/461882
2. Unzip the package at the www folder of the WAMP package. Suppose, you have installed WAMP at D://Program Files/ then the destination for unzipping would be D://Program Files/wamp/www/
3. Rename the folder to something convenient, say simply "drupal" .
4. On your favorite web browser (I prefer Mozilla Firefox), go to http://localhost/drupal
5. A Drupal Installation page must have opened. Follow the steps to install.

Now, that was the easy part! Although the installation went fine, there were certain warnings that filled the webpages. The exact warnings were:

Warning: Couldn't fetch mysqli in e:\Program Files\wamp\www\drupal\includes\database.mysqli.inc on line 323
Warning: Couldn't fetch mysqli in e:\Program Files\wamp\www\drupal\includes\database.mysqli.inc on line 108
Warning: Couldn't fetch mysqli in e:\Program Files\wamp\www\drupal\includes\database.mysqli.inc on line 122

My first instinct was to check the three lines in the mysqli.inc which had no fruitful consequence. Hence, I did the most logical thing to do: google it! And here's the solution, courtesy google.co.in and drupal.org:

1. Open the file settings.php located at drupal\sites\default\
2. Locate line 90 which says:
$db_url = 'mysqli://root@localhost/drupal';
3. Change it to:
$db_url = 'mysql://root@localhost/drupal';
4. Enjoy a warning-free Drupal site!

Thats all I had to do get Drupal running on my system.

C'ya!
[P.S., I had completely forgotten the warning statement, but thanks to Google Web History, I could produce the exact statement. So check out: http://www.google.com/history/]

Comments

Post new comment

CAPTCHA
Thank you for using Captcha to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.