How to install and configure XAMPP on Windows

To download and install XAMPP on Windows 10, use these steps:

  1. Open the Apache Friends website.
  2. Click the XAMPP for Windows button to save the file on your desktop.
  3. Double-click the downloaded file to launch the installer.
  4. Click the OK button.
XAMPP warning on Wndows

5. Click the Next button.

XAMPP setup on Windows 10

6. XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will be using most of these components, as such it’s recommended to leave the default options.

7. Uncheck Mercury Mail Server, Tomcat, Perl, Webalizer, Fake Sendmail if not needed and click the Next button.

8. Use the default installed location, or choose another folder to install the software in the “Select a folder” field.

9. Click the Next button.

XAMPP installation location

10. Clear the Learn more about Bitnami for XAMPP option.

11. Click the Next button.

XAMPP installation wizard on Windows 10

12. Click the Allow access button to allow the app through the firewall (if applicable).

XAMPP allow access through Windows Firewall

13. Click the Finish button.

Complete XAMPP installation on Windows 10

14. Choose your language (English or German).

15. Click the Save button.

Once you complete the steps, the XAMPP Control Panel will launch, and you can begin the web server environment configuration.

How to configure XAMPP on Windows 10

The XAMPP Control Panel includes three main sections. In the Modules section, you’ll find all the web services available. You can start each service by clicking the Start button.

When you start some of the services, including Apache and MySQL, on the right side, you’ll also see the process ID (PID) number and TCP/IP port (Port) numbers that each service is using. For example, by default Apache uses TCP/IP port 80 and 443, while MySQL uses TCP/IP port 3306.

You can also click the Admin button to get access to the administration dashboard for each service and verify that everything is working correctly.

On the right side there’s a list of buttons to configure various aspects of the control panel, including the Config button to configure which modules will automatically start when you launch XAMPP.

XAMPP Config

Clicking the Netstart button will give you a list of services currently accessing the network, including TCP/IP address and port, and process ID information.

XAMPP Netstat

In addition, from the control panel, there are also quick access buttons to open the shell command-line utility, XAMPP installation folder, services, and close the app.

Lastly, you get the logs section, where you can get a glance of what happens every time you start a module or change a setting. This is also the first place to look at when something isn’t working.

The default settings should work for most people using XAMPP to create a testing environment to run a website. However, depending on your setup configuration, you may need to change the TCP/IP port number for the Apache server, the database upload size, or set the password for phpMyAdmin.

To change these settings, you’ll need to use the Config button for the corresponding service. For instance, you’ll need to open the httpd.conf file to change the settings on the Apache server, and the my.ini file to change the MySQL settings.

How to change phpMyAdmin password on XAMPP

By default, phpMyAdmin (MySQL) uses “root” as username without password, which means that if you’re installing a WordPress site, when asked you only need to enter root as the username and leave the password field empty.

To change the phpMyAdmin password on XAMPP, use these steps:

  1. Open XAMPP Control Panel.
  2. Click the Admin button for MySQL.
  3. Click on the User accounts tab.
  4. Click the Edit privileges link for the username root, but the one with hostname localhost.
  5. Click the Change password button.
  6. Specify the new password.
  7. Click the Go button.

After you complete the steps, if you try to login to phpMyAdmin, you will get an access denied message: “Cannot connect: invalid settings.”

phpMyAdmin access denied after setting root password

Fixing phpMyAdmin access denied message

To change the configuration settings in the config.inc.php file to fix the sign in problem, use these steps:

  1. Open XAMPP Control Panel.
  2. Click the Explorer button.
  3. In the XAMPP folder, open the phpMyAdmin folder.
  4. Open the config.inc.php file with any text editor.
  5. Under “Authentication type and info,” and update the following lines:
    • On $cfg['Servers'][$i]['auth_type'] = 'config'; replace config for cookie.
    • On $cfg['Servers'][$i]['AllowNoPassword'] = true; replace true for false.
  6. Save and close the file.

Once you complete the steps, you should be able to login to phpMyAdmin dashboard.

Now XAMPP is configured and ready to use with any supported PHP-based software.

Sr. SDET M Mehedi Zaman

Currently working as Sr. SDET at Robi Axiata Limited, a subsidiary of Axiata Group. As a Senior SDET: - Played a key role in introducing Agile Scrum methodology and implementing CI/CD pipeline to ensure quality & timely delivery. - Trained colleagues on emerging technologies, e.g. Apache Spark, Big Data, Hadoop, Internet of Things, Cloud Computing, AR, Video Streaming Services Technology, Blockchain, Data Science- Developed a test automation framework for Android and iOS apps - Developed an e2e web automation framework with Pytest - Performed penetration testing of enterprise solutions to ensure security and high availability using Kali, Burp Suite etc. - Learned Gauntlet security testing automation framework and shared the lesson learned in a knowledge sharing session

Leave a Reply

Your email address will not be published. Required fields are marked *