Your XAMPP HTTP server won’t start because of the port 80 in use?

Do you want to fix it without changing the HTTP port?

This is the ultimate fix tutorial.

In this tutorial you will discover the different causes of Apache not starting and why – sometimes – the system (kernel) can itself reserve port 80 in services such as World Wide Web Publishing and Windows Activation Process.

If you are using Vmware Workstation and you have the error 443 in use, then uninstall Vmware and things will work again.

Let’s go!

How does the Error Look Like?

The error is long and it ends with: Error: Apache shutdown unexpectedly.

In this tutorial we will first uncover the cause of the problem then we will fix it step by step.

If you were able to fix the problem please leave a comment below to thank me. Thanks.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 1 Control Panel

1. Discover the Source of the Port 80 in Use Error

Analyzing the Processes Using the Port 80

Open a new Command Prompt as administrator from the Start menu and type in this command:

netstat -aon | findstr :80

You will see many lines of TCP and sometimes UDP protocols, copy the last number, here it’s 4.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 1 Netstat Aon Findstr 80

Knowing the Process Responsible for Locking the Port 80

Use this command to know the name of the process responsible for this issue:

tasklist /fi "pid eq 4"

As you can see in the screenshot below, it’s the system that is blocking the port. Let’s deal with it!

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 1 Tasklist Fi Pid Eq 4

2. Disable Services Using the HTTP Port 80

Open Run using the Windows+R keyboard shortcut, type in services.msc and hit Enter.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 2 Services Msc

Stop the following services:

  • Windows Process Activation Service (WAS)
  • World Wide Web Publishing Service (W3SVC)
  • BranchCache (PeerDistSvc)
Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 3 Services Windows Process Activation Service World Wide Web Publishing Service
Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 4 Service Branch Cache

And double-click on them and set their “Startup type” as “Disabled“.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 5 Disabled W3svc World Wide Web Publishing Service

Try to start your XAMPP now, if it works leave a comment. If not continue reading.

Uninstall the Services Blocking the Port 80

Open your Start menu and search and open the Control Panel.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 6 Control Panel Start

Click on “Programs and Features“.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 7 Programs And Features

Click on “Turn Windows features on or off“.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 8 Turn Windows Features On Or Off

Uncheck the following entries:

  • Internet Information Services
  • Internet Information Services Hostable Web Core
  • Windows Process Activation Service

Click “OK“.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 9 Iis Internet Information Services Hostable Web Windows Process Activation Service

Wait for a couple of seconds…

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 10 Applying Changes

Click “Don’t restart” and continue reading.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 11 Do Not Reboot

3. Disable the Hidden HTTP.SYS Service

Open the Command Prompt (CMD) as administrator.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 12 Cmd

Type in the following command and hit Enter:

net stop http /y

You will notice a world of services that have been stopped.

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 13 Net Stop Http Y Cmd Command Prompt

To disable the HTTP service run this command:

sc config http start= disabled
Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 14 Sc Config Http Start Disabled

4. XAMPP is Working Again!

Restart your computer if necessary, your XAMPP should be working again!

If yes, leave a comment below!

Apache Xampp Problem Port 80 443 In Use Not Starting Fixed Solved Solution 15 Solved

Thank you for reading, if you like this tutorial please share it everywhere!

If you have a question don’t hesitate to ask it in the comments below.

Sofian – Easytutorial.com