To download and install XAMPP on Windows 10, use these steps:
- Open the Apache Friends website.
- Click the XAMPP for Windows button to save the file on your desktop.
- Double-click the downloaded file to launch the installer.
- Click the OK button.
5. Click the Next button.
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.
10. Clear the Learn more about Bitnami for XAMPP option.
11. Click the Next button.
12. Click the Allow access button to allow the app through the firewall (if applicable).
13. Click the Finish button.
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.
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.
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:
- Open XAMPP Control Panel.
- Click the Admin button for MySQL.
- Click on the User accounts tab.
- Click the Edit privileges link for the username root, but the one with hostname localhost.
- Click the Change password button.
- Specify the new password.
- 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.”
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:
- Open XAMPP Control Panel.
- Click the Explorer button.
- In the XAMPP folder, open the phpMyAdmin folder.
- Open the config.inc.php file with any text editor.
- Under “Authentication type and info,” and update the following lines:
$cfg['Servers'][$i]['auth_type'] = 'config';replace
$cfg['Servers'][$i]['AllowNoPassword'] = true;replace
- 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.