XAMPP is an all-in-one package that you can use to install Apache, PHP, and MySQL. XAMPP also installs phpMyAdmin, a Web application used to administer MySQL. XAMPP installs all the packages in one easy procedure. XAMPP installation instructions are provided for Windows and Mac.
It's best to accept the default location (c:\xampp) unless you have a really good reason to choose another location. If you are installing on Vista, you cannot install in the Program Files folder because of a protection problem. Also, PHP sometimes has a problem if it is installed in a folder with a space in the path, such a Program Files.
You can click Browse to select another install folder. When you have chosen the install folder, click Next. The XAMPP Options screen appears.
A small panel with messages may appear, as shown. If so, click OK.
To test your installation, open the XAMPP control panel. When the control panel is running, its icon is in your system tray. You can click the icon to open the Control Panel. If you do not have the icon in your system tray, you can start the Control panel from the start menu by choosing the following:
Start->All Programs->Apache Friends->XAMPP->XAMPP Control Panel
If you attempt to start the Control Panel when it is already running, as shown by the icon in your system tray, an error message is displayed.
The open Control Panel with Apache and MySQL running is shown below.
This status means your development environment is ready for work. If the status of Apache and MySQL is Running but the SVC box is not checked, you can use Apache and MySQL, but they will stop when your computer is shut down. You will have to restart them in the XAMPP Control Panel every time you start your computer. It's better to run them as a service so that they will start automatically whenever your computer starts.
If you're a Mac OS X user, Apache, PHP, and MySQL are already installed on your computer, but not activated. If you have expertise in its setup, which includes activating the software, accessing hidden and locked files, and editing a configuration file on your own you can use the pre-installed system. Some setup tips are found at foundationphp.com and other sites. You will also need to download and install phpMyAdmin on your system separately.
If you prefer, you can use XAMPP. It installs everything in one procedure and is as easy to install as any other software application you're familiar with. However, you need to be sure that the preinstalled software packages are not activated.
Follow along now to set up your development environment with XAMPP.
To test your installation, go to the xampp folder in your Applications folder. Double-click the XAMPP Control Panel icon. When the Control Panel is running, its icon is in your dock. You can click the icon to open the Control Panel. The open Control Panel is shown below.
Click Start next to Apache and MySQL to get them running. You'll see what's running in the Output field. When Apache and MySQL are running, your development environment is ready for work.
Now type the word localhost into your browser's URL field. If you see an XAMPP placeholder page, it's working.