Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP - Port 80 in use by "Unable to open process" with PID 4! 12

I have been trying to figure out how to fix this problem for two days. I'm new to this kind of thing so I would appreciate it if someone could tell me how to fix it.

I've tried deleting skype but that didn't work, I've tried turning off the world wide web thing off, IIS off nothing seems to work.

12:51:22 PM  [Apache]   Problem detected! 12:51:22 PM  [Apache]   Port 80 in use by "Unable to open process" with PID 4! 12:51:22 PM  [Apache]   Apache WILL NOT start without the configured ports free! 12:51:22 PM  [Apache]   You need to uninstall/disable/reconfigure the blocking application 12:51:22 PM  [Apache]   or reconfigure Apache and the Control Panel to listen on a different port 
like image 366
user3097839 Avatar asked Dec 13 '13 03:12

user3097839


People also ask

How do I free up port 80 on XAMPP?

This can be done by clicking on the "Config" button on the same line as the "Apache" module, select the "httpd. conf" file in the dropdown, then change the "Listen 80" line to "Listen 8080". Save the file and close it. Now it avoids Port 80 and uses Port 8080 instead without issue.

How do I fix a port 80 error?

Your port 80 is being used by the system or Skype. If by Skype then first quit Skype and run Apache. And you can restart Skype. In Windows “World Wide Publishing" Service is using this port and stopping this service will free the port 80 and you can connect Apache using this port.

How do I unblock port 80 in Apache?

Go to the Control Panel and launch "Windows Firewall" Go to "Advanced Settings" Select "Inbound Rules" in the left pane Select "New Rule" in the right pane In the New Inbound Rule Wizard, select "Port" as Rule Type, then click on "Next" Select "TCP and put "80" (and any other ports you want to open) in "Specific local ...


2 Answers

  1. Open a CMD prompt as administrator and execute the following command:

    net stop was /y 
  2. Open the Run dialog box (press Win+R), then type: services.msc

    Then search for World Wide Web Publishing Service (WWW-Publishing Service) and Web Deployment Agent Service and stop them. You should also disable them.

  3. Start Apache again with XAMPP :)

Link Ref: https://www.sitepoint.com/unblock-port-80-on-windows-run-apache/

like image 89
Vo Quoc Cuong Avatar answered Sep 17 '22 11:09

Vo Quoc Cuong


Another very easy option is to simply set Apache to listen on a different port. This can be done by clicking on the "Config" button on the same line as the "Apache" module, select the "httpd.conf" file in the dropdown, then change the "Listen 80" line to "Listen 8080". Save the file and close it.

Now it avoids Port 80 and uses Port 8080 instead without issue. The only additional thing you need to do is make sure to put localhost:8080 in the browser so the browser knows to look on Port 8080. Otherwise it defaults to Port 80 and won't find your local site.

This will also require you to restart Apache for the change to take effect.

Voila! Fixed.

like image 28
gtr1971 Avatar answered Sep 17 '22 11:09

gtr1971