Install XAMPP on Windows 10 | Solving XAMPP error

How to install XAMPP on Windows 10?

Today we will walk through the steps to install XAMPP on Windows 10 and how to solve the Apache refuse to start error.

Installing XAMPP on Windows 10 is sometimes tricky if you are still unable to configure xampp properly please follow these steps. I will show you how to install XAMPP on Windows 10 with ease.

What is XAMPP?

XAMPP is an open-source software developed by Apache friends. XAMPP software contains distributions for Apache server, MariaDB, PHP, and Perl. We can run a local server on our desktop or laptops by using the xampp software. The use of XAMPP is to test the website and database before going to the remote web server. This XAMPP server software gives you an environment for testing MYSQL database, PHP in a local server or localhost.

Before publishing our website remote server its always better to test in the local environment. By using XAMPP we can create a local environment in our local machine. XAMPP stands for X- cross-platform, A- Apache, M- MySQL, P- PHP, P- Perl. It is completely free and open-source. It simply gives you a control panel to manage all the server components.

Installing XAMPP on Windows

If you want to get started with PHP application development. You need a PHP development environment. In this blog post, I will show you how to install XAMPP in Windows 10 and fix port issues while starting the Apache server does…

Step 1: Download the XAMPP installer

Go to the Apache Friends website and download the latest windows installer. The download file size is around 140 MB. select 7.2.26 / PHP 7.2.26 for optimum performance.

install-xampp-on-windows-10-Downloading xampp for windows 10 - webskilltelugu

Step 2: Run the XAMPP installer

Once you downloaded xampp, double click on the downloaded file to open the installation setup. A window will popup and User access control asking for permission to go ahead with the installation.

Run the XAMPP installer - webskilltelugu

Step 3 – Select Component phase

In this phase, you get a window for selecting components that we want to install. leave everything as it is and click on next.

install-xampp-on-windows-10-XAMPP-Select Component phase - webskilltelugu

Step 4: Select Installation Folder

After clicking next now choose the installation folder where you want to install the XAMPP software. You can choose the default location or you can change to any location of your choice and click on the ‘Next’ button.

install-xampp-on-windows-10-xampp-installation folder-webskilltelugu

Step 5: Ready to install XAMPP

Now we can see a message “Setup is now ready to begin installing XAMPP on your computer”, Just click on next to proceed further.

Step 6: Final step Installation Complete

Once finished installation you will be asked to start the control panel now or not, it will show a message like “Do you want to start the control panel now?” Check the checkbox and click on the ‘Finish’ button and check if xampp working properly or not.

installation complete - webskilltelugu

Fix Apache shutdown unexpectedly and how to fix a Blocked Port in XAMPP

When you trying to start Apache, you get this error/ Don’t worry its because of the blocked port. Follow all step by step instructions to solve this problem.

You can get error something like this:

[Apache] Status change detected: running
[Apache] Status change detected: stopped
[Apache] Error: Apache shutdown unexpectedly.
[Apache] This may be due to a blocked port, missing dependencies,
[Apache] improper privileges, a crash, or a shutdown by another method.
[Apache] Press the Logs button to view error logs and check
[Apache] the Windows Event Viewer for more clues
[Apache] If you need more help, copy and post this
[Apache] entire log window on the forums

If you installed Skype on your computer it causes the error. By default Skype is using Port number 80 and the localhost is also using Port number 80. So conflict will occur because both are using the same port number.

1. Go to XAMPP Control panel, click on Config:

xampp control panel config

You will find the editor and change the editor to good text editor like notepad++ or sublime.

XAMPP change editor

2. Click on Config and select httpd.conf:

  • Find “Listen 80” and change it to “Listen 8080”
  • Find “ServerName localhost:80” and change it to “ServerName localhost:8080”.
  • If running SSL, you’ll need to change httpd-ssl.conf:
  • Search for “Listen 443” and change it to “Listen 4433”.
  • Find “<VirtualHost _default_:443>” and rename it to “<VirtualHost _default_:4443>”.
  • Find “ServerName localhost:443”. It’s possible that this hasn’t been set up yet and it reads “ServerName”. In any case, change it to “ServerName localhost:4443”.
  • Go to Control Panel, click on the main Config button again.
  • Now Click on Service and Port Settings.
  • Change the Main Port to 8080 and the SSL Port 4433.
  • Close the Configuration.
  • Stop and Start Apache.
  • Click the Admin button by Apache and it should open up the XAMPP home page in your browser.

That’s it. Hope this article is useful.

Posted in PHP

Leave a Reply

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