Fix XAMPP Apache Port 80 in Use Error – XAMPP Tutorial

By | June 4, 2021

XAMPP Apache may report Port 80 in use error and fail to start. In this tutorial, we will introduce how to fix this error.

This error looks like below:

XAMPP Apache Port 80 in use

The reason for this error is that port 80 has been used by other application, apache can not use or listen this port.

How to fix this error?

In order to fix this error, we can change the port listened by apache.

Here is some steps:

Open Apache httpd.conf

Open XAMPP Apache httpd.conf file

Then, we can change Apache listen port. In this tutorial, we will change it to 81.

Change XAMPP Apache Listen Port

Then, you can start Apache successfully.

You should notice you can open a url as follows:

http://127.0.0.1:81

Category: PHP

Leave a Reply