How to install XAMPP on Windows 10

Last update: 04/11/2024

Install XAMPP on Windows 10

If you are a web developer or just curious to learn how to manage a local server, you may have come across the need to install XAMPP on your computer. This software, which Combining Apache, MySQL, PHP and Perl, it is the best way to create a testing environment on your own computer without having to pay for internet hosting services.In this article we will teach you how to Install and configure XAMPP on Windows 10, step by step and with all the necessary recommendations so that you don't get lost in the process.

Not only does XAMPP allow you to run dynamic websites locally, but it is also the perfect tool for those who want to practice or develop projects in a safe environment before uploading them to a production server. If you are working with PHP, MySQL or perl, there is no better option. We are going to break down the process of installing, configuring and using XAMPP so that you can have it up and running on your computer in no time.

What is XAMPP?

XAMPP es a free software package that allows you to turn your computer into a local server for testing web applications. With it, you can run services such as Apache (Web server), MySQL (manager of databases), PHP (language of programming web) and Perl (another language of script). Being cross-platform, you can use it not only on Windows, but also on macOS and Linux. This whole set of tools helps you create a functional local server without having to be connected to the Internet.

Download XAMPP

To start, the first thing we need to do is go to the official XAMPP page at apachefriends.orgHere you will find versions available for different platforms: Windows, Linux and macOSIn this tutorial, we will focus on how to download the Windows 10 version.

Find the latest version of XAMPP for Windows and download the executable file. Note that there are several versions available, each using different versions of PHP. It is recommended that you choose the one that best suits the needs of your project. For example, if you are working with an older version of PHP, make sure to download the correct version of XAMPP that is compatible with that version.

  When is it best to enable or disable file indexing in Windows?

Install XAMPP on Windows 10

Once the installer is downloaded, double-click on the executable to start the installation process. The installer might display some warning messages, but you can continue without any problems. The installation interface is quite simple and you will only have to follow the steps:

  • First, choose the components you want to include in your installation (Apache, MySQL, PHP, etc.). If you're not sure which components you need, leave the default options.
  • Next, select the folder where you want to install XAMPP. The default path is C:\\xampp, and it is best to maintain it.
  • On the next screen about 'Bitnami for XAMPP' (which is an additional support for installing applications quickly), you can ignore it if you don't plan on installing applications like WordPress at the moment.
  • Finally, click “Install” and wait for the process to complete. It may take a few minutes depending on your computer.

Finishing the installation

Once the installation process is complete, a window will appear where you can choose to run the XAMPP control panel automatically. If you check the box, the XAMPP control panel will open immediately. From this panel, you can easily control the different services such as Apache and MySQL. Click the “Start” buttons to start both services.

Local Server Configuration

After starting Apache and MySQL, open your browser and enter in the address bar localhost o 127.0.0.1If everything is installed correctly, you will see the XAMPP home page. This tells you that the Apache server is running properly.

To access database management, you can use phpMyAdmin typing in your browser localhost/phpmyadminFrom here, you can easily create and manage databases. The default MySQL user is “root” and the password is empty.

Save your projects in htdocs

One of the most common questions is: Where should projects be saved? XAMPP creates a folder called htdocs inside the installation folder (remember that by default it is C:\\xampp\\htdocs). Any file or folder you put inside this folder will be accessible through localhostFor example, if you put a folder called 'my_project', you can access it by entering localhost/my_project in the browser.

  How to recover deleted files with Recuva, PhotoRec, and Disk Drill on Windows and macOS

Possible problems and solutions

One of the most common problems that can arise when using XAMPP is that the port 80 o 443, which Apache uses, is being used by another application (such as Skype or another program). If Apache is unable to start, let's see how to fix this:

  • First, you can change the port that Apache uses. To do this, open the file httpd.conf from the XAMPP control panel and look for the line that says Listen 80. Change this port to one that is not busy, for example, the 8080.
  • Afterwards, you also need to change the port in the file httpd-ssl.conf for the port 443, changing it to 444 or another available port.

Another option is to close the program that is using the conflicting port, such as Skype, and then restart Apache. This is usually the quickest solution if you don't need to have those programs open while you're setting up your local server.

Uninstall services like Apache or MySQL automatically

If you want Apache or MySQL to start automatically every time you boot Windows, you can configure this directly in the XAMPP control panel. Simply check the box called “Service” next to each of these services to have them run as system services.

This way, you won't have to open the XAMPP control panel every time you want to work. However, if you change your mind later, you can uncheck these options and prevent them from running automatically.

Now that you have successfully installed XAMPP on your computer, you will have access to a full-fledged local server for web projects. Try creating your first web pages in PHP or install tools like WordPress to see how they work in a safe testing environment. If you have problems with ports, or encounter errors during installation, remember to review the settings and check the options available in the XAMPP control panel.