Appendix A. Installing PHP, MySQL, and Apache from XAMPP

You can install PHP, MySQL, and Apache on your computer by installing an all-in-one package called XAMPP. The XAMPP installation procedure installs recent versions of Apache 2.2, PHP 5, and MySQL 5.1. XAMPP also installs phpMyAdmin and FileZilla.

The XAMPP installation is perfectly appropriate for a development environment on your own computer. You should not use XAMPP to install the software on a Web server that is going to make the Web site available to the public. The XAMPP installation does not install a configuration that's secure enough or located correctly for a public Web site.

XAMPP installs the same software that would be installed if you downloaded and installed the software from each individual Web site. However, the software is installed in different locations. The default location is c:\xampp for Windows or Applications\xampp for Mac. If you installed each software package individually, they would be in different locations throughout your machine. Consequently, the configuration files for the software are in different locations than where they would be located if you installed them individually, and some documentation might be misleading. Configuring the Web software is explained in Appendix B.

Installing XAMPP on Windows

Follow these steps to install the Web software using the XAMPP installer:

  1. Go to

  2. Scroll down to the Download section, shown in Figure A-1.

  3. Click the Installer ...

Get PHP and MySQL® For Dummies®, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.