PREREQUISITES

Before you begin, you must have done the following:

* Installed and configured XAMPP following the instructions given in either:\\
\\
           [Install and configure XAMPP 1.7.1.|Install and configure XAMPP 1.7.1] or [Install and configure XAMPP 1.7.2.|Install and configure XAMPP 1.7.2]\\
\\
* Download and untar drupal to c:\.  You may download the current version of drupal from [drupal.org|http://drupal.org/project/drupal]\\
\\
* linkd.exe has been installed on your workstation.  If you haven't already done so, you can [download linkd.exe|Use SymLinks with XAMPP^linkd.exe] now.\\

ASSUMPTIONS

* This is an example of how to install drupal-6.13 or greater.  Follow this example replacing drupal-6.13 with the version of drupal that is being installed.\\

1.  Create SymLink

Create the following SymLink in the *c:\xampp\htdocs* directory:\\
\\
      *linkd drupal c:\drupal-6.13*\\
\\

2.  Add drupal to XAMPP

Edit *C:\xampp\apache\conf\extra\httpd-xampp.conf* and add the following:\\
\\
{code}
    Alias /drupal "C:/xampp/htdocs/drupal/"
    <directory "C:/xampp/htdocs/drupal">
        AllowOverride AuthConfig FileInfo Limit Options Indexes
    </directory>
{code}
{color:red}NOTE:{color}&nbsp;&nbsp;If you have changed the *DocumentRoot* in the apache *httpd.conf* file, the you must replace *C:/xamp/htdocs* in the above with the value that is being used for the *DocumentRoot*.\\
\\
Save the change.

3.  Create drupal's setting.php

Edit *C:\xampp\htdocs\drupal\sitest\default\settings.php (If settings.php does not exist, make a copy of default.settings.php and rename the copy to settings.php).\\
\\
Find:\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *# $base_url = 'http://www.example.com';  // NO trailing slash!* \\
\\
and change to: \\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *$base_url = 'http://localhost/drupal';  // NO trailing slash!* \\
\\
(notice that the leading # sign has been removed).\\
\\
Save the change.\\

4.  Verify that mod_rewrite.so is active

Edit *c:\xampp\apache\conf\httpd.conf* and uncomment the line *LoadModule rewrite_module modules/mod_rewrite.so*.&nbsp;&nbsp;This is need so that Drupal can have "clean links".\\

5.  Create the MySql drupal database

Open a web browser and navigate to *http://localhost/phpMyAdmin* and log into MySql.\\
\\
Create a *drupal* database as shown below in the *MySQL localhost* section.\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !drupalMySqlDatabase.jpg! \\
\\
When you are satisfied that everything is correct, click the *Create* button. \\

6.  Verify the installation

*Restart apache*, open a web browser and go to the following URL to finish the drupal installation:\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://localhost/drupal \\
\\
If everything has been configured properly, the follow will be displayed:\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !drupalWelcome.jpg! \\
\\
Click on *Install Drupal in English* to complete the drupal installation.\\

7.  A NOTE OF IMPORTANCE

* What to do when you encounter the following error during item 6. (Verify the installation) above:\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !badSymLink.jpg! \\
\\
The above error indicates the *installed version of XAMPP does not support SymLinks*.\\
\\
To reconfigure XAMPP do the following:\\
\\
* Remove the SymLink that were created in 1. above.&nbsp;&nbsp;This can be done by opening a CMD window, changing the working direcory to  *c:\xampp\htdocs*, and executing the following command line:\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *linkd drupal /D*\\
\\
* Open *Windows Explorer* and do the following:\\
\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *copy the drupal-6.13 directory from the c:\ directory to the c:\xampp\htdocs directory and rename the newly created drupal-6.13 directory to drupal*.\\