Install and configure XAMPP 1.7.2
...
PREREQUISITES
indent | ||||
---|---|---|---|---|
| ||||
Before you begin, you must have done the following: {panel} Downloaded XAMPP 1.7.2, the Basic Package (do not use the Lite version). Download the *exe* self-extracting RAR archive (I used xampp-win32-1.7.2.exe). You can view all version of XAMPP which are available for download at [http://sourceforge.net/projects/xampp/files/|http://sourceforge.net/projects/xampp/files/], or Download [^xamppInstall and configure XAMPP 1.7.2^xampp-win32-1.7.2.exe] directly from this page. \\ {panel} |
1. Install XAMPP 1.7.2
indent | ||||
---|---|---|---|---|
| ||||
{panel} Execute *xampp-win32-1.7.2.exe*.\\ \\ Verify that the *Destination folder* is c:\ as shown below.\\ \\ !xampp1.7.2-InstallationLocation.jpg!\\ \\ Click the *Install* button to finish the installation. When prompted, take the default value.\\ \\ {panel} |
2. Locking IP addresses for XAMPP 1.7.2
indent | ||||
---|---|---|---|---|
| ||||
{panel} Access to XAMPP is controlled by using a simply *username* and *password*. It is recommended that XAMPP be further locked down allowing access to specified IP addresses. This can be accomplished by making modifications to the apache *httpd-xampp.conf* configuration file as described below:\\ \\ Edit *c:\xampp\apache\conf\extra\httpd-xampp.conf* and find the entry shown below:\\ \\ *Original httpd-xampp.conf*\\ \\ {code} <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"> Order deny,allow Deny from all Allow from ::1 127.0.0.0/8 \ fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \ fe80::/10 169.254.0.0/16 ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var </LocationMatch> {code} \\ Add the IP addressed to the *Allow from* element that are to have access to XAMPP as illustrated below. The IP addresses 18.19.1.231 and 18.19.5.190 are included only as an example of how to enable an IP address. Be sure to change (or remove) these 2 IP address to suit your requirements.\\ \\ You must *restart apache* after you have made and saved these changes to *httpd-xampp.conf*.\\ \\ You can download a completed version of [^httpdInstall and configure XAMPP 1.7.2^httpd-xampp-1.7.2.conf] directly from this page. {color:red}Don't forget to rename httpd-xampp-1.7.2.conf to httpd-xampp.conf{color}. {code} # # New XAMPP security concept # <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"> Order deny,allow Deny from all Allow from ::1 127.0.0.0/8 \ ::2 18.18.4.232 \ ::3 18.18.1.125 \ fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \ fe80::/10 169.254.0.0/16 ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var </LocationMatch> {code} {panel} |