XAMPP Tutorial: How to Install and Setup XAMPP for Windows

XAMPP has been designed to be the easiest way to install and run a development server locally. There are numerous other WAMP packages available, but XAMPP is one of the most complete on offer.In this XAMPP Tutorial, I will show you how to install and setup XAMPP in Windows for your development server.

What is XAMPP?

XAMPP stands for Cross Platform (X) Apache (A) MariaDB (M) PHP (P) and Perl (P). It is completely free and easy to install Apache web distribution consisting of MariaDB, PHP and Perl. Additionally it includes other really useful tools such as the phpMyAdmin database administration tool, FileZilla FTP server, Mercury mail server, Perl programming language, and JSP server Tomcat.

XAMPP is maintained by a wonderful community called Apache Friends. Apache Friends is a non-profit project to promote the Apache web server and is home to the XAMPP project.

Download XAMPP

Downloading XAMPP is as simple as downloading any other free software on the web. Just visit their official website and download the setup file according to your desired PHP version and depending on your operating system.

XAMPP for Windows

xampp tutorial - install on windows

The most stable version of PHP as of writing this post (November 24, 2016) is 5.6.xx. So I would recommend to download the XAMPP with PHP version 5.6.xx.


Windows 2008, 2012, Vista, 7, 8 and 10. Note that Windows XP and 2003 is not supported. To download a compatible version of XAMPP for XP and 2013 visit here.

Install XAMPP in Windows

After finishing your downloading you will have a setup file named like xampp-win32-5.6.28-0-VC14-installer.exe

Simple execute this file by double clicking on it.

Select Yes on Continue with installation prompt.


Click on OK on the Warning box.


Click Next


Select the required components. Select the ones you think you might need. The main components are Apache and MySQL. I have selected all the components for this tutorial.


Choose the installation directory for XAMPP. For simplicity, I am choosing the default C:\xampp


Uncheck the option Learn more about Bitnami for XAMPP. You can of course, check this option if you’re interested in learning more about Bitnami for XAMPP.


XAMPP is now ready for the installation. Hit Next > and wait for the installation to complete.


After successful installation open the xampp control panel. Start the modules Apache and MySQL.


Hit Allow access when prompt for Windows Firewall Security Alert.


You will see the text Apache and MySQL turn green. It means that both Apache and MySQL are running successfully.


Testing XAMPP

Now that XAMPP is installed and running, let’s test it if it’s working.

Testing Apache Server

Open your favorite Internet browser, type localhost in address bar and press enter. You will be redirected to XAMPP dashboard. It means your server is up and running. (y)


Testing MySQL with phpMyAdmin

In your favorite Internet browser, type localhost/phpMyAdmin and press enter. You will be greeted by native phpMyAdmin screen. You can create/update your databases here and can run MySQL queries.


So this brings to the end of our first post of XAMPP tutorial series. I hope it was very easy to understand and follow along.¬†Overall, XAMPP is a great tool to get a full development server up and running within no time and without any constraints. The only issue is that because it is so easy to setup, it doesn’t have the security features for this to be used as a production server. To make your website web accessible, we advice you to buy a subscription from a web hosting company.

What’s next?

How to Install WordPress with XAMPP

Common XAMPP issues and fixes:


We will be happy to hear your thoughts

Leave a reply