There are many possible answers to this problem. The most common and most likely is that you have another program running that blocks port 80 or 443. If you installed Skype, you found your problem! Change the apache port settings to 81 and apache will work. There is a good tutorial on this. To verify this, you can open your command line by clicking the Start menu and typing "cmd" and enter the command
netstat -nab
this wil returns a list of programs that will vaguely resemble this template
[someprogram.exe] UDP [fe80::numbers:numbers:numbers:numbers%numbers]:portnumber
You need to find a line (or lines) ending in: 80, and complete them to start apache. If the line does not end with: 80, you can do more things.
First go to the xampp directory (the default is c: \ xampp) and double-click apache_start.bat. This will open the comand line and return more detailed errors about why apache cannot work. Basically, you need to look for syntax errors that you could create by editing the httpd.conf or httpd-ssl.conf files. This is very easy to do if you have edited it and become a new user.
If this fails, your last hope is to check the apache error log by clicking the log tab in the apache line in the xampp control panel and clicking the error log.
If none of this works, donβt give up! You got it!
Edit: If you change the apache port, you will also have to go to httpd.conf (located in xampp / apache / conf) and near line 184, replace
ServerName localhost:80
from
ServerName localhost:81
You can also specify port 81 in the URL of your local host, i.e.
local: 81 / my_project.php
TheHiggsBroson Jul 31 '13 at 17:56 2013-07-31 17:56
source share