Before you begin, you must have done the following: {panel} \\ * Installed and configured XAMPP following the instructions give 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]\\ \\ * 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.\\ \\ {panel} |
{panel} \\ * This is an example of how the change apache's default *DocumentRoot* to a user defined *DocumentRoot*. This example will demonstrate how to change the default *DocumentRoot* to a user defined *DocumentRoot* of *c:/var/www/html*.\\ \\ Follow this example to change the *DocumentRoot*, replacing *c:/var/www/html* with a directory path of your choosing.\\ \\ {panel} |
{panel} \\ Using *Windows Explorer*, create the directories for *c:\var\www\html*.\\ \\ {panel} |
{panel} \\ Edit *c:\xampp\apache\conf\httpd.conf* and change:\\ \\ From:\\ *DocumentRoot "C:/xampp/htdocs"*\\ To:\\ *DocumentRoot "C:/var/www/html"*\\ \\ and change:\\ \\ From:\\ *<Directory "C:/xampp/htdocs">*\\ To:\\ *<Directory "C:/var/www/html">*\\ \\ Save the changes.\\ \\ {panel} |
{panel} \\ Create the following SymLinks in the *c:\var\www\html directory*. This can be done by opening a CMD window, changing the working direcory to *c:\var\www\html*, and executing the following command lines:\\ \\ *linkd xampp c:\xampp\htdocs\xampp*\\ *linkd phpMyAdmin c:\xampp\phpMyAdmin*\\ \\ and if you have *drupal* installed, create the addition link:\\ \\ *linkd drupal c:\drupal-6.13*\\ \\ adjusting the drupal version number as needed.\\ \\ {panel} |
{panel} \\ *Restart apache*, open a web browser and go to the following URL’s:\\ \\ http://localhost/xampp \\ and\\ http://localhost/phpMyAdmin \\ and if drupal is installed\\ http://localhost/drupal \\ \\ {panel} h2.{color:red}*A NOTE OF IMPORTANCE*{color} {indent:1} {panel} \\ * What to do when you encounter the following error during item 4 above:\\ \\ !badSymLink.jpg! \\ \\ The above error indicates the *installed version of XAMPP does not support SymLinks*.\\ \\ To reconfigure XAMPP do the following:\\ \\ * Remove the SymLinks that were created in 3. above.. This can be done by opening a CMD window, changing the working direcory to *c:\var\www\html*, and executing the following command lines:\\ \\ *linkd xampp /D*\\ *linkd phpMyAdmin /D*\\ \\ and if you have *drupal* installed, remove the addition link:\\ \\ *linkd drupal /D*\\ \\ * Open *Windows Explorer* and do the following:\\ \\ *copy the xampp directory from the c:\xampp\htdocs directory to the c:\var\www\html directory*.\\ *copy the phpMyAdmin directory from the c:\xampp directory to the c:\var\www\html directory*.\\ \\ and if you have *drupal* installed:\\ \\ *copy the drupal-6.13 directory for c:\ to the c:\var\www\html directory and rename the newly created drupal-6.13 directory to drupal*.\\ \\ {panel} |