


Anything under the sun...



XAMPP is an easy-to-use multi-platform package that installs Apache, MySQL, PHP, phpMyAdmin, and a whole slew of other software useful for dynamic web development on your computer. Installation is painless, and configuration minimal. This page guides you through installing the package on both Windows and Mac OS X. You can also read general notes about using XAMPP.
Click the "1.6.5" link to expand the appropriate version, and choose to download xampp-win32-1.6.5-installer.exe.You can add or change the files in C:\xampp\htdocs to change what you see at http://localhost/ on any local web browser. You may need to delete index.php in that directory to stop the server from automatically redirecting you to the XAMPP configuration interface.
Here are the locations of some configuration and log files you may want to view or change:
| Type | Location |
|---|---|
| Apache configuration | C:\xampp\apache\conf\httpd.conf, C:\xampp\apache\conf\extra\*.conf |
| Apache logs | C:\xampp\apache\logs\access.log, C:\xampp\apache\logs\error.log |
| PHP configuration | C:\xampp\php\php.ini |
| MySQL configuration | C:\xampp\mysql\bin\my.cnf |

You can add or change the files in /Applications/xampp/htdocs to change what you see at http://localhost/ on any local web browser.
Here are the locations of some configuration and log files you may want to view or change:
| Type | Location |
|---|---|
| Apache configuration | /Applications/xampp/etc/httpd.conf, /Applications/xampp/etc/*.conf |
| Apache logs | /Applications/xampp/xamppfiles/logs/access_log, /Applications/xampp/xamppfiles/logs/error_log |
| PHP configuration | /Applications/xampp/etc/php.ini |
| MySQL configuration | /Applications/xampp/etc/my.cnf |
Note that "localhost" (often resolving to the reserved IP address 127.0.0.1) is a special name defined in the DNS system as a name that a host uses to reference itself, using the loopback interface. URLs that refer to "http://localhost/" can only be used on the system with XAMPP installed. However, by default, XAMPP configures Apache to allow connections from outside your system, so people on your network, or in some cases users from anywhere in the world, may be able to access your Apache-served files using your IP address.
You can go to http://localhost/phpmyadmin/ to use the locally-installed copy of phpMyAdmin, a tool useful for manipulating your MySQL databases in a graphical environment.
On the Windows version of XAMPP, you can use the command-line interface (CLI) version of PHP at C:\xampp\php\php.exe. On Mac OS X this is located at /Applications/xampp/xamppfiles/bin/php. If you want to be able to execute PHP by simply typing "php" at the command line in either operating system, you need to add the directory containing PHP (C:\xampp\php on Windows and /Applications/xampp/xamppfiles/bin on Mac OS X) to your "path" variable. There are tutorials available for doing this on Windows and on Mac OS X.
If you want to fine-tune your Apache, MySQL, or PHP settings, you can go to http://localhost/xampp/ to view and change parts of your XAMPP configuration. If you are feeling especially adventurous, you can also hand-tweak the configuration files in the XAMPP installation directory.
Note that XAMPP may tell you that PHP is insecure because it is not running in "safe mode". However, PHP's safe mode feature is considered a broken security measure (and has been removed in the next version, PHP 6.0) and should not be enabled.