Web-en

XAMPP Apache cannot start Port 80 in use

Getting this issue when trying to start Apache on XAMPP ?

13:47:10  [Apache]     Problem detected!
13:47:10  [Apache]     Port 80 in use by "Unable to open process" with PID 4!
13:47:10  [Apache]     Apache WILL NOT start without the configured ports free!
13:47:10  [Apache]     You need to uninstall/disable/reconfigure the blocking application
13:47:10  [Apache]     or reconfigure Apache and the Control Panel to listen on a different port
13:47:10  [Apache]     Attempting to start Apache app...
13:47:10  [Apache]     Status change detected: running
13:47:11  [Apache]     Status change detected: stopped
13:47:11  [Apache]     Error: Apache shutdown unexpectedly.
13:47:11  [Apache]     This may be due to a blocked port, missing dependencies,
13:47:11  [Apache]     improper privileges, a crash, or a shutdown by another method.
13:47:11  [Apache]     Press the Logs button to view error logs and check
13:47:11  [Apache]     the Windows Event Viewer for more clues
13:47:11  [Apache]     If you need more help, copy and post this
13:47:11  [Apache]     entire log window on the forums

The reason might be that the port you are using is already in use on your computer, and that you cannot use it for your Apache web server.

XAMPP Apache cannot start Port 80 in use : Error message in XAMPP when starting Apache
Error message in XAMPP when starting Apache

Locate your httpd.conf – if you don’t know where it is located, in XAMPP window, click on Config > Apache (httpd.conf), it will open it automatically in your system’s default text editor.

XAMPP Apache cannot start Port 80 in use : Locate httpd.conf in XAMPP
Locate httpd.conf in XAMPP

Look for the line containing Listen 80, 80 is the port used by Apache to serve web pages

XAMPP Apache cannot start Port 80 in use : Listen 80, default Apache port
Listen 80, default Apache port

Change it to another value – for example Listen 8080

XAMPP Apache cannot start Port 80 in use : Apache port changed to 8080
Apache port changed to 8080

Try again to start your Apache

XAMPP Apache cannot start Port 80 in use : Apache starting in XAMPP
Apache starting in XAMPP

It should now be working !

You might face another issue if you are using Skype, XAMPP Apache error Port 443 in use by Skype

Apache started in XAMPP
Apache started in XAMPP

You can access your web pages with the URL http://localhost:8080

Accessing web pages with the new port
Accessing web pages with the new port