Why won't Apache start in XAMPP installation?

若如初见. 提交于 2019-12-01 04:06:12

It seems that port 80 and 443 is used by another program. From my experince - open Skype. Go to Tools -> Options -> Advanced -> Connection. Please uncheck "use port 80 and 443 as alternatives...."

Then, try to restart Apache.

I tried this and it worked really well...

As you have already figured the port 80 is in use by something with pid 4

This application's detailed info can be seen using the details tab on the task manager window.

However I found out the application is not writable and hence I figured it shouldn't be touched.

Instead I changed the port of the apachae server on xampp to be 85

Open xampp and click on config in front of apache then select the first option that appears allowing you to open httpd.conf and then in the notepad file that opens up, find the word listen and go to the 4th word that it finds.

It will read something like Listen 80

Change this to any number except 80 (like 85) and voila it work

Opening the XAMPP control panel as Administrator worked for me.

The solution for me was to:

1) Stop IIS (stop the "World Wide Web Publishing Service" and set its startup type to Manual)

2) Stop the "Web Deployment Agent Service" and set its startup type to Manual.

...as detailed in http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/

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

A process with a PID of 4 that is taking port 80, is almost always the Window's HTTP.SYS Service. It's a type of a proxy service for other services. And it's safe to disable it in most cases.

From command-line, Run As Admin.

net stop http
sc config http start= disabled

Or you can switch it's Startup Mode to "On Demand".

For more options and also a list of other port 80 Services see Opening Up Port 80 For Apache to Use On Windows.

Steps which u can try:

1) uninstall or stop Skype and check again after restarting the server.

2) use this to get the port usage details : use cmd netstat -a -b

3) or use this GUI tool to identify the ports used by other programs.

4) uninstall Xammp and try with Wamp Server

in my case a website was configured on IIS , i stopped and it worked well.

You have to close down Skype. It tells you exactly why it can not start in the error message.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!