Author |
|
B-Slice
Joined: 25 May 2017 Posts: 3 Location: Canada, Markham
|
Posted: Thu 25 May '17 22:03 Post subject: Error while setting up Apache |
|
|
Hey guys,
I was trying to set up an Apache server because I want to create a website and along the way I have unfortunately come across an error. Now I should inform you I am rather new at all of this so I feel that I will be able to get some of the best help here.
The error I have come across occurred when I typed (in quotations) "C:\Apache24\bin>httpd -k start" in the administrator as I was setting up the Apache server is (in quotations)...
"(OS 10048) Only usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: Make_sock: could not bind to address [::]:80
(OS 10048) Only usage of each socket address (protocol/network address/port) is normally permitted. : AH00072: Make_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
AH00015: unable to open logs"
I can't seem to figure out how to fix this error. I have searched the internet as well and have been unlucky in finding a resolution to this issue.
Now I know the rules say to only put in what is necessary but I am uncertain what isn't necessary to be able to fix this error.
I apologize in advanced if this is something simple to fix
.
thanks,
Brian |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Thu 25 May '17 23:31 Post subject: |
|
|
The first question I have is what Operating system are you running?
If running windows Server (2008, 2012, 2016), perhaps you have IIS installed and it is running?
If running windows 7 or 10, it more than likely will be that Skype is running and listening on port 80.
Open a command prompt as an administrator and type in: netstat -abno > c:\listen.txt
Open listen.txt with notepad and do a search for 80 and you will be able to find out what process is listening on port 80
Here is an example of what you will see (httpd is the process for Apache Web Server):
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1900
[httpd.exe]
TCP 0.0.0.0:88 0.0.0.0:0 LISTENING 3368
[nginx.exe] |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Fri 26 May '17 0:25 Post subject: |
|
|
As I like to go "old skool" at times, I gave you instructions for checking from a command prompt. If you want to use the GUI in WIndows,
Windows 7:
Click on Start
Click on All programs
Click on Accessories
Click on System Tools
Click on Resource Monitor
Select Network tab
Click on Listening ports
Sort by ports
Windows 10:
Click on Start
Type in Resource Monitor in the box next to the start button
Select network Tab
Click on Listening ports
Sort by ports |
|
Back to top |
|
B-Slice
Joined: 25 May 2017 Posts: 3 Location: Canada, Markham
|
Posted: Fri 26 May '17 18:57 Post subject: |
|
|
I forgot to mention that I am running windows 10.
Now when I go into listening ports it shows that two different 'images' that are both "httpd.exe" are running on port 80. It also is showing that there are two different 'images' running with the same name on each listening port as well.
Is this supposed to be like this?
How do I make port 80 free?
Also thanks a lot for the help! |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Fri 26 May '17 19:42 Post subject: |
|
|
If HTTPD.EXE is running, that is for Apache WEB server.
Sounds like you configured Apache to run as a service and it is running when you start Windows. That is what you wanted correct?
If that is the case, there is no need for you to have to type in "C:\Apache24\bin>httpd -k start" from an elevated command prompt.
Quick way to find out if Apache is installed and working correctly:
Open a Web Browser
In the address box, type in http://localhost
You should see a page that says: It Works! |
|
Back to top |
|
B-Slice
Joined: 25 May 2017 Posts: 3 Location: Canada, Markham
|
Posted: Fri 26 May '17 20:14 Post subject: |
|
|
Ah yes it does say it works! looks like Apache is installed correctly and working fine. Thank you for your time, again I am new to this so every bit of help means a lot to me. |
|
Back to top |
|
DnvrSysEngr
Joined: 15 Apr 2012 Posts: 226 Location: Denver, CO USA
|
Posted: Sat 27 May '17 4:03 Post subject: |
|
|
Always glad to assist. |
|
Back to top |
|