XAMPP stands for Cross-Platform (X), Apache (A), MySQL (M), PHP (P) and Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for developers to create a local web server for testing purposes. Everything you need to set up a web server – server application (Apache), database (MySQL), and scripting language (PHP) – is included in a simple extractable file. XAMPP is also cross-platform, which means it works equally well on Linux, Mac and Windows. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server extremely easy as well. Web development using XAMPP is especially beginner friendly.

 

What’s Included in XAMPP?

 

XAMPP has four primary components. These are:

1. Apache: Apache is the actual web server application that processes and delivers web content to a computer. Apache is the most popular web server online, powering nearly 54% of all websites.

2. MySQL: Every web application, howsoever simple or complicated, requires a database for storing collected data. MySQL, which is open source, is the world’s most popular database management system. It powers everything from hobbyist websites to professional platforms like WordPress. You can learn how to master PHP with this free MySQL database for beginners course.

3. PHP: PHP stands for Hypertext Preprocessor. It is a server-side scripting language that powers some of the most popular websites in the world, including WordPress and Facebook. It is open source, relatively easy to learn, and works perfectly with MySQL, making it a popular choice for web developers.

4. Perl: Perl is a high-level, dynamic programming language used extensively in network programming, system admin, etc. Although less popular for web development purposes, Perl has a lot of niche applications.

Different versions of XAMPP may have additional components such as phpMyAdmin, OpenSSL, etc. to create full-fledged web servers.

 

How to install XAMPP?

 

Open the XAMPP website in your computer’s web browser. 

 

Click XAMPP for Windows. It’s a grey button near the bottom of the page. Depending on your browser, you may first have to select a save location or verify the download.

 

 

 

 

Double-click the downloaded file. This file should be named something like xampp-win32-7.2.10-0-VC15-installer, and you’ll find it in the default downloads location (e.g., the “Downloads” folder or the desktop).

 

 

Click Yes when prompted. This will open the XAMPP setup window.You may have to click OK on a warning if you have User Account Control (UAC) activated on your computer.

 

 

 

 

Click Next. It’s at the bottom of the setup window.

 

 

Select aspects of XAMPP to install. Review the list of XAMPP attributes on the left side of the window; if you see an attribute that you don’t want to install as part of XAMPP, uncheck its box. By default, all attributes are included in your XAMPP installation. After, Click Next found at the bottom of the window.

 

 

Select an installation location. Click the folder-shaped icon to the right of the current installation destination, then click a folder on your computer. If you have the UAC activated on your computer, avoid installing XAMPP in your hard drive’s folder (e.g., OS (C:)).
You can select a folder (e.g., Desktop) and then click Make New Folder to create a new folder and select it as the installation destination.

 

 

Click Next. You’ll find it at the bottom of the page.

 

 

 

Begin installing XAMPP. Click Next at the bottom of the window to do so. XAMPP will begin installing its files into the folder that you selected.

 

 

 

Click Finish when prompted. It’s at the bottom of the XAMPP window. Doing so will close the window and open the XAMPP Control Panel, which is where you’ll access your servers.

 

 

Select a language. Check the box next to the American flag for English, or check the box next to the German flag for German.

 

 

Click Save. Doing so opens the main Control Panel page.

 

Start XAMPP from its installation point. If you need to open the XAMPP Control Panel in the future, you can do so by opening the folder in which you installed XAMPP, right-clicking the orange-and-white xampp-control icon, clicking Run as administrator, and clicking Yes when prompted.When you do this, you’ll see red X marks to the left of each server type (e.g., “Apache”). Clicking one of these will prompt you to click Yes if you want to install the server type’s software on your computer.

Counterintuitively, double-clicking the xampp_start icon doesn’t start XAMPP.

 

 

Resolve issues with Apache refusing to run. On some Windows 10 computers, Apache won’t run due to a “blocked port”. This can happen for a couple of reasons, but there’s a relatively easy fix:

Click Config to the right of the “Apache” heading.
Click Apache (httpd.conf) in the menu.
Scroll down to the “Listen 80” section (you can press Ctrl+F and type in listen 80 to find it faster).
Replace 80 with any open port (e.g., 81 or 9080).
Press Ctrl+S to save the changes, then exit the text editor.
Restart XAMPP by clicking Quit and then re-opening it in administrator mode from its folder.