0

I have a problem with xampp, when I try to start the Apache server it start and after few seconds it stop. I use both on my laptop, php and asp.net, so I have Visual Studio with IIS and xampp for the php projects. I tryed to check for the port :80 and nothing use this port except Skype (fixed on skype configurations) and Apache... so I don't understand where is the problem.

I'm sure there is a bug or a conflict with asp.net maybe, but it's hard for me to find the problem.

Hope you had this trouble before and can help me... thanks.

Toro
  • 103
  • 3

3 Answers3

1

Look in Apache's error.log and Windows' system log. One of them will contain a detailed message about what went wrong. Double use of port 80 may be your problem already - only one program can be listening on a port.

Pekka
  • 2,178
  • 3
  • 20
  • 32
1

I'm assuming IIS also uses port 80, as well as Apache on XAMPP and Skype. In Skype: Tools > Options > Advanced > Connection > Untick Use port 80 and 443 as alternatives for incoming connections

Then you have to change the port of either Apache or IIS. I'm not sure how to do this in IIS, but in Apache: Make sure Apache is off, then go to the Apache installation directory (since you're using XAMPP, this will most likely be C:\xampp\apache. In there find the conf folder, find httpd.conf and open it with Notepad or another editor. Find the line Listen 80 (around line 47), and change 80 to your desired port (often 8080, 8000 or 81 is used). Then find ServerName localhost:80 and again, replace 80 with your desired port (must be the same as the one used before) Save and start Apache.

Following above instructions should allow all three programs to connect without problems.

Hosh Sadiq
  • 106
  • 3
  • 15
0

Try to use another port other than 80. Sometimes is not working even unused.

musa
  • 121
  • 5
  • If i go on /xampp/apache/conf/httpd.conf and I change the Listen from 80 to 8080 when I start apache it looks always to the port 80... –  Aug 28 '11 at 13:57
  • If you are not forced to use xampp, I suggest to install wamp. –  Aug 28 '11 at 14:02