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.
Follow these steps to install the Web software using the XAMPP installer:
Scroll down to the Download section, shown in Figure A-1.
Click the Installer ...