Debug School

rakesh kumar
rakesh kumar

Posted on

Xampp Error:[Apache] Port 80 in use by "Unable to open process" with PID 4!

yersterday i faced error when i install xampp i got error
in xampp control panel Problem detected!
16:29:31 [Apache] Port 80 in use by "Unable to open process" with PID 4!
16:29:31 [Apache] Apache WILL NOT start without the configured ports free!
Solution
Configure XAMPP to Use a Different Port:

If you can't or don't want to stop the service using port 80, you can configure XAMPP to use a different port for its Apache web server.

Download and install XAMPP if you haven't already.

Once installed, open the XAMPP Control Panel.

In the Control Panel, click on the "Config" button next to "Apache" and select "httpd.conf" to edit the Apache configuration file.

In the configuration file, search for the "Listen" directive, which specifies the port Apache listens on. Change the port number from 80 to a different port number, such as 8080:

Now, Apache in XAMPP should be running on the new port (8080 in this example), and you should be able to access your web applications using that port (e.g., http://localhost:8080). This allows you to have both XAMPP and the other service coexist without conflicts on port 80.

Image description
Save the configuration file and close it.

Top comments (0)