logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Error while setting up Apache
Author
B-Slice



Joined: 25 May 2017
Posts: 3
Location: Canada, Markham

PostPosted: Thu 25 May '17 22:03    Post subject: Error while setting up Apache Reply with quote

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

thanks,

Brian
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Thu 25 May '17 23:31    Post subject: Reply with quote

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

PostPosted: Fri 26 May '17 0:25    Post subject: Reply with quote

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

PostPosted: Fri 26 May '17 18:57    Post subject: Reply with quote

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! Smile
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Fri 26 May '17 19:42    Post subject: Reply with quote

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

PostPosted: Fri 26 May '17 20:14    Post subject: Reply with quote

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. Very Happy
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 226
Location: Denver, CO USA

PostPosted: Sat 27 May '17 4:03    Post subject: Reply with quote

Always glad to assist.
Back to top


Reply to topic   Topic: Error while setting up Apache View previous topic :: View next topic
Post new topic   Forum Index -> Apache