How to Download, Install and Use XAMPP on Windows 10

XAMPP is a completely free, open-source, and easy to install Apache distribution containing Apache HTTP Server, MariaDB, PHP, and Perl and other supporting modules like FileZilla, Tomcat, Mercury, etc. It is released by apache-friends which is a non-profit project to promote the Apache webserver under GNU General Public License.

It provides basic infrastructure like an HTTP server, database, and s+cripting language for your local WordPress installation. You can create a development/testing instance for the production environment. There are other tools like WAMP, MAMP, LAMP, WAPP, MAPP, LAPP, Nginx, and HHVM available in the market.

Below are the components which come with XAMPP,

  • Apache – HTTP Web Server.
  • MySQL – The world’s most popular open-source database. It is actually MariaDB as per the XAMPP.
  • FileZilla FTP Server – FTP server to transfer file from client to server and vice-versa
  • Mercury Mail Server – Internet email server
  • Tomcat – Open-source implementation of the Java Servlet, JavaServer Pages, Java Expression Language, and Java WebSocket technologies
  • PHP and Perl – Programming Language
  • phpMyAdmin – Free and open-source tool written in PHP intended to handle the administration of MySQL or MariaDB with the use of a web browser.
  • Webalizer – Web server log file analysis program that produces usage statistics in HTML format for viewing with a browser
  • Fake Sendmail – Sendmail is a mail server that runs on *nix. (fake) sendmail included with the Windows version of XAMPP pretends to send mail, but really just forwards the email, usually to your ISP’s SMTP server

Install XAMPP on Windows 10

XAMPP is cross-platform that means it is available for Windows, Linux, and Mac OS x for 32 bit or 64-bit versions. It supports Windows 10, Windows 8, 7, and Vista.

You can download XAMPP from the below link.


The latest version does not support Windows XP or 2003. Old versions are available here. Linux and OSX users, you can download it from the same location and use this guide to install on Linux.

1. Start Installation

Double-Click the XAMPP installer to start the installation. It is a wizard-driven installation where it asks for the setup option like components, folder, etc. You can change it, but let it be the default.

Setup may give you the below error.

It seems you have an antivirus running. In some cases, this may slow down or interfere the installation of the software. Please visit the following link to learn more about this.
Continue with installation?
Yes No

Antivirus running warning

Important! Because an activated User Account Control(UAC) on your system some functions of XAMPP are possibly restricted. with UAC please avoid to install XAMPP to C:\Program Files (x86) (missing write permissions). Or deactivate UAT with msconfig after this setup.

User Account Control(UAC) warning

Click Yes and OK for the warning given by the installer for Antivirus and Windows UAC. It should install without any issue, but if you face issues disable anti-virus temporarily. Make sure you are not connected to the internet when antivirus is not running and do not forget to enable it again.

2. Welcome

Here Setup Wizard welcomes you. Click Next to continue the installation.


3. Select the Component

Choose components like Apache, MySQL, FileZilla FTP Server, etc which you want to install. I have selected all as it can also be used as a server when designing the web using PHP and MySQL. You need only Apache, PHP, and phpMyAdmin for WordPress.

XAMPP select components

4. Choose the Installation folder

Choose default and click Next. If you are not an admin on the desktop, do not install it under program files as you may not have access to these folders.

choose installation folder

Bitnami provides a one-click installation of popular software like WordPress, Joomla, Drupal, etc. If you want to know more about it click on the below checkbox, else uncheck it.

Bitnami for XAMPP

That’s it. Post this Installation starts.


5. Complete Installation

Installation is complete and you are ready to use the XAMPP server. Check if you want to open the control panel and click on finish.


6. Verify Installation

Go to Windows -> Start -> XAMPP Control Panel to launch it. This is how the control panel looks.


XAMPP Control Panel is the only and central dashboard. It allows you to Start/Stop services like Apache, MySQL, FileZilla, Mercury, and Tomcat, etc. Just click on the Start button and service starts. The same button you can use to Stop the services. You can also administer/config service and see log files using it.


Now, let’s see in brief How to use XAMPP.

PHP and MySQL development

Create folder phpsite in C:\xampp\htdocs\. Open Notepad, Notepad++ or any preferred text editor. Create a file and put the below PHP code.

Example 1 – hello world PHP script

<!DOCTYPE html>

echo "Hello World!";


Save the file in C:\xampp\htdocs\phpsite\ folder with .php extension(hello-world.php).

Now open the Chrome browser and type http://localhost/phpsite/ in the address bar. This displays all the available files in mysite folder as shown below.

XAMPP for PHP Development

Click on hello-world.php. XAMPP runs the PHP file and produces the output as shown below. You can also run this PHP file directly entering http://localhost/phpsite/hello-world.php in the address bar.

Hello World PHP Example

Next, let’s see how to connect the MySQL server and display records from a table. We are going to use mysqli API for connection.

Example 2 – PHP and MySQL Database connection script

<!DOCTYPE html>

   $mysqli = new mysqli("", "user", "password", "database");
   if ($mysqli->connect_errno)
       echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
	$res = $mysqli->query("SELECT name FROM wp_terms ORDER BY name ASC");

    echo "Output...";
    echo "<p>";
    while ($row = $res->fetch_assoc())
        echo " name = " . $row['name'];
	    echo "<br>";


Just type http://localhost/phpsite/connect-mysql.php on the browser’s address bar. This runs the PHP file to produce the below output.

connect mysql script output

Install WordPress, Joomla, and Drupal Locally on Windows

You can also install open-source CMS like WordPress, Joomla, and Drupal on localhost using XAMPP. This is beyond the scope of this article. But you can refer to this article where we have explained how to Install WordPress Locally on Windows.


XAMPP is not made for production use and we also found XAMPP a little slow. But, it gets your work done free and open source way.

So go ahead install XAMPP on Windows and start your web stack development journey.

I hope you found this article helpful. Please share and subscribe.

Share This: