8

I've taken the first steps to learning PHP - think it would be a good step in the right direction. I would like some help however on installing XAMPP. I have downloaded the file and all that through the Apache Friends site, but when I head to to control panel, I get numerous errors.

This is what it says for me:

**10:21:53  [Apache]    Problem detected!
10:21:53  [Apache]  Port 80 in use by "Unable to open process" with PID 4!
10:21:53  [Apache]  Apache WILL NOT start without the configured ports free!
10:21:53  [Apache]  You need to uninstall/disable/reconfigure the blocking application
10:21:53  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
10:21:53  [Apache]  Problem detected!
10:21:53  [Apache]  Port 443 in use by "C:\Program Files (x86)\Skype\Phone\Skype.exe" with PID 3748!
10:21:53  [Apache]  Apache WILL NOT start without the configured ports free!
10:21:53  [Apache]  You need to uninstall/disable/reconfigure the blocking application
10:21:53  [Apache]  or reconfigure Apache and the Control Panel to listen on a different port
10:21:53  [main]    Starting Check-Timer
10:21:53  [main]    Control Panel Ready**

Could someone please tell me what this means and how I remedy it? Thanks very much.

halfer
  • 19,824
  • 17
  • 99
  • 186
Timothy Armoo
  • 167
  • 2
  • 2
  • 4
  • Do you have another web server running because port 80 is already in use. –  Sep 12 '13 at 09:37
  • Do you have Skype installed? – Ben Fortune Sep 12 '13 at 09:41
  • Try to change skype configuration: go to Options > Advanced > Connection and untick the "Use port 80 and 443 as alternatives for incoming connections" option. – Paolo Gibellini Sep 12 '13 at 09:41
  • Look what runs under port 80, and reconfigure skype, skype often uses 80 or 443 for file transfer and so on. – Wiggler Jtag Sep 12 '13 at 09:42
  • Thats why instaling apache or any webserver app on a desktop pc is big fault :) – Wiggler Jtag Sep 12 '13 at 09:42
  • Or just, as a test, exit Skype, open WAMP and then open Skype again (it will fetch another port automatically) – Damien Pirsy Sep 12 '13 at 09:43
  • @WigglerJtag Why if I may ask? Do you develop directly on webservers? – Damien Pirsy Sep 12 '13 at 09:43
  • Alternatively, change Apache to run on a different port. You'd be looking for a file called "httpd.conf" or similar, then change the `Listen 80` directive to `Listen 8080` and re-start Apache. – halfer Sep 12 '13 at 09:52
  • @DamienPirsy by desktop pc I meant pc with software like skype,photoshop and torrents, it just makes people (almost beginners) confused and so they dont even read the log and give up before trying solving the problem :) – Wiggler Jtag Sep 12 '13 at 10:47

8 Answers8

13

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...."

enter image description here

Then, try to restart Apache.

teo
  • 801
  • 6
  • 14
  • 1
    Does not look like these explanations belong to SO. People are setting here webservers, so I don't think they need tutorials to how to open settings in skype. – Wiggler Jtag Sep 12 '13 at 10:33
  • @Wiggler Jtag - sometimes the picture is more useful than a lot of texts. Not all users are so experienced. If the picture irritates you, I can delete it :-). – teo Sep 12 '13 at 10:49
  • Hehe, nah its ok :) Yes not experienced and coming here with questions like what is port, thats the problem :/ Dont like opening 9999th same topics :) – Wiggler Jtag Sep 12 '13 at 10:50
  • Thanks for all your helps. I have just goen through the whole skype process as been advised but still no luck, now what I get is: g02:00:30 [Apache] Problem detected! 02:00:30 [Apache] Port 80 in use by "Unable to open process" with PID 4! 02:00:30 [Apache] Apache WILL NOT start without the configured ports free! 02:00:30 [Apache] You need to uninstall/disable/reconfigure the blocking application 02:00:30 [Apache] or reconfigure Apache and the Control Panel to listen on a different port – Timothy Armoo Sep 15 '13 at 01:04
  • You can try to run 'netstat -bano' to see which application is listening on port 80. See [How do I free my port 80 on localhost windows](http://stackoverflow.com/questions/788348/how-do-i-free-my-port-80-on-localhost-windows). Or you can configure Apache to listen on another port. – teo Sep 15 '13 at 07:02
5

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

TMess
  • 156
  • 2
  • 9
2

Opening the XAMPP control panel as Administrator worked for me.

Jonast92
  • 4,964
  • 1
  • 18
  • 32
1

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/

Gordon Glas
  • 1,659
  • 2
  • 15
  • 23
1

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.

rightstuff
  • 6,412
  • 31
  • 20
0

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

Aditya
  • 120
  • 3
  • 11
0

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

Girish
  • 323
  • 3
  • 10
0

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

Travis
  • 135
  • 2
  • 10