XAMPP is a free open source software did Provides an easy way for web designers and developers to install The Necessary components to run PHP based software like WordPress , Drupal, Joomla, and others on Windows, Mac OS X, and Linux.
Apache, MySQL, PHP, and Perl on your computer to create a test environment. XAMPP wants to save you time and frustration.
In this guide , you’ll learn how to install the XAMPP on your computer running Windows 10 , how to configure the software, and solve common problems.
Step-by-step guide to install XAMPP:
- Download XAMPP from Apache Friends .
If you have special version requirements for PHP, then download the version you’re required to install. If you do not have a version requirement, then download the oldest version, it may help you to avoid issues trying to install a PHP based software.
- Double-click the file to run the installer.
- Click OK on the warning to continue.
- Click Next .
- XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will want to use most of these components, as it is recommended to leave the default options and click Next .
- Uncheck the Learn more about Bitnami for XAMPP and click Next .
- Leave the default install location settings or choose another folder to install the software, and click Next to begin the installation.
- During the installation Windows will prompt you to allow certain services to communicate through the firewall. Click Allow access through the firewall for private.
- Click Finish to complete the installation and to start using XAMPP Control Panel.
- Choose your language (English or German), and click Save to complete and open XAMPP Control Panel.
How to configure XAMPP on Windows 10
The XAMPP Control Panel includes three main sections. In Modules, you will find all the services available. You can run each service by clicking the Start button.
When you start some of the services, including Apache and MySQL, on the right side, you will also see the process ID number and TCP/IP port numbers 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 have a list of buttons to configure various aspects of the control panel, including Config to configure which modules will automatically want to start when you launch XAMPP.
Netstart will give you a list of services currently accessing the network, process ID and TCP/IP port information.
And there are also quick access buttons to open the shell command-line utility, XAMPP install folder, Services, and quick.
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 for personal use or a client. 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 Config button for the corresponding service. For example, 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 settings for MySQL.
How to fix Apache not starting on XAMPP
The XAMPP installation is very straightforward, but on Windows 10 and other versions of the operating system, sometimes there is a problem that will not allow the Apache server to run.
The issues can be attributed to the World Wide Publishing Service that may be installed and running on port 80 on your Windows PC. Port 80 also happens to be the default TCP/IP port that Apaches uses on XAMPP and no two applications can use the same port in the computer.
You have a few ways to fix the problem as shown below:
Uninstall World Wide Web Services
If you don’t have any applications depending on the World Wide Web Services feature, you can uninstall it using the following steps:
-
- Use the Windows key + X keyboard short to open the Power User menu and select Programs and Features.
- Click the Turn Windows features on or off link.
- Expand Internet Information Services and uncheck World Wide Web Services. Here, you can also uncheck FTP Server and Web Management Tools, if you don’t depend on those services.
- Click OK.
- Reboot your computer to complete the task.
- Open XAMPP Control Panel and click Start on Apache.
Change the default Apache TCP/IP port
Alternatively, you can configure Apache to run on a different TCP/IP port using the following steps:
- One the XAMPP Control Panel, click the Admin button on Apache, and click httpd.conf.
- Scroll down and find the line: Listen 80.
- Change the 80 for another TCP/IP port number. You can try port 81. After the change the line should read: Listen 81.
- Save and close the httpd.conf file.
- Click the Start button to run the Apache server.
The only caveat with this configuration change is that you’ll need to append TCP/IP port number on the address every time you want to connect to your website. For example, to access the Apache server on the web browser, you will need to type: localhost:81/dashboard instead of localhost/dashboard.
Manually stop World Wide Web Publishing Service
Another thing you could do is to stop World Wide Web Publishing Service (World Wide Web Services) and change its settings to only start the service manually using the following steps:
- Open the Start menu, do a search for Services, and press Enter.
- Scroll down, find, and double-click World Wide Web Publishing Service.
- Click Stop.
- Change the startup type to manual .
- Click Apply .
- Click OK .
- On XAMPP Control Panel, click the Start button to run the Apache server.
The best way to get Apache working again is by uninstalling the World Wide Web Publishing Service, but if that’s not possible you can change the TPC / IP port number or stop service as necessary.
References – Pureinfotech