Apache error - cound not bind to address 0.0.0.:80

  • chuck
  • Born
  • Born
  • chuck
  • Posts: 1

Post 3+ Months Ago

:( I'm new to server stuff and I've just install Apache so I can learn PHP. I'm running Windows XP w/SP 2 installed.

When I start Apache, I get the error message:

Only one usage of each socket address (protocol/network address/port) is normally permitted. :make_sock: could not bind to address 0.0.0.:80
Unable to open logs.

I think it means something else on my machine is using port 80.

1) How do I find out what else is using port 80?

2) I found something about a conflict with Apache & IIS (Internet Information Service) webserver but don't know anything about IIS .
> How do I check to see if I have that on my PC?
> If it's on my PC how do I disable it?

2) Is there another port I can use for Apache?
If so,
> What other ports are available?
> Do I only have to change the port number in the 'Servername=' parameter in the Configuration file?

I'd appreciate assistance on this so I can proceed with learning PHP. Thanks!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • LAbrego
  • brego from LA
  • Web Master
  • User avatar
  • Posts: 2855

Post 3+ Months Ago

Hi, Chuck, Welcome to Ozzu. I don't use Apache but someone else can help you with that, don't worry, there's a lot of friendly and skilled people here :wink: (I am the black sheep :lol:)

To stop IIS try this

1- Goto control panel > Administrative Tools > Internet Information Service (IIS) Manager
2- In IIS Manager, right click the local computer, point to All Tasks, then click Restart IIS
3- In the What do you want IIS to do list, select Stop Internet Services on <yourcomputername>

Your account must be an administrative account to do this.

//EDIT: I also found this about changing conf file on Apache to avoid this error:

Quote:
Open up your httpd.conf file in apache2/conf, look for the line that starts with Listen usually around line number 120 or so.See that it is set up to Listen on 80 or whatever port you wanted, look for ServerName line and put either localhost or 127.0.0.1, save the file and check again
  • Jerrek
  • Graduate
  • Graduate
  • User avatar
  • Posts: 158
  • Loc: Melbourne, AUS

Post 3+ Months Ago

If the 0.0.0:80 in your error message is not actually a typo in the forum message, then you could look for 0.0.0 in the httpd.conf file too - it is a bogus IP address and if the config file actually contains that as a bind address it will certainly fail :)
  • LAbrego
  • brego from LA
  • Web Master
  • User avatar
  • Posts: 2855

Post 3+ Months Ago

Thanks for your input Finndel, Chuck already solved his problem, here's a PM he sent me:

Chuck wrote:
Apache is working!! I noticed the icon in my system tray that indicated 'Running all Apache Services'. I must have started Apache and didn't know it????

Maybe that's why I got that error since port 80 was already being used by the 1st instance of Apache ?

Anyway, I had changed the servername to 'localhost' (with no :80), then went to my browser and entered 'localhost' in the url and got the default start page!

Thank you for your suggestions! Forums like this are what makes the Internet GREAT!

Chuck
  • Jerrek
  • Graduate
  • Graduate
  • User avatar
  • Posts: 158
  • Loc: Melbourne, AUS

Post 3+ Months Ago

Cool, glad he's sorted :)

Steve.
  • redcreative
  • Born
  • Born
  • redcreative
  • Posts: 1

Post 3+ Months Ago

:D

This was great help to me as well. Thank you!!
  • LAbrego
  • brego from LA
  • Web Master
  • User avatar
  • Posts: 2855

Post 3+ Months Ago

You are welcome redcreative, glad we can help you. And BTW, welcome to Ozzu.
  • thecaptainjs
  • Born
  • Born
  • thecaptainjs
  • Posts: 2

Post 3+ Months Ago

I am replying here because I had the same problem, but fixed it with your solution here.

However,
I am able to access it locally (localhost or 127.0.0.1)
but I cannot access it within my local lan, (on the router)
and also I cannot access it outsite the lan.

I changed the port to 81 to see if that would make a difference, but no dice

Any Suggestions?

Btw:
Windows 2000
No Firewall Installed.

I am fairly sure that for some reason the port doesnt seem to be available to other comptuers.
  • thecaptainjs
  • Born
  • Born
  • thecaptainjs
  • Posts: 2

Post 3+ Months Ago

For those experiencing similar problems:

I was able to resolve this by changing from localhost/ 127.0.0.1
to my internal IP (192.168.1.3)

Now it works fine.

I dont suppose anyone can explain this to me?

Sometime I think computers do things to mess with us.
  • ahmed_ch
  • Born
  • Born
  • ahmed_ch
  • Posts: 2

Post 3+ Months Ago

hi guys,

i am totally new to apache n all.....
i am having the same problem and tries all the things as mentioned in the above posts....
but none of them seem to work and i get the sam error...is there anything else i can do?

thanks
  • ahmed_ch
  • Born
  • Born
  • ahmed_ch
  • Posts: 2

Post 3+ Months Ago

hey guys hi again..

well i got that issue taken care of...i had made a typo..

now the problem is when i type http://localhost in the browser i get an error..

in Internet Explorer the error is: HTTP 403: The website requires you to login.

and in Mozilla Firefox the error is:
Forbidden
You do not have permission to access / on this server.

Can you kindly help me out with the problem..I will realyy appreciate it..
Thanks
  • dananos
  • Newbie
  • Newbie
  • dananos
  • Posts: 7
  • Loc: London

Post 3+ Months Ago

With reference to the question above,

I was getting the following error:

Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd.exe: Could not reliably determine the server's fully qualified domain na
, using xxx.xxx.xxx.xx for ServerName
(OS 10048)Only one usage of each socket address (protocol/network address/port
is normally permitted. : make_sock: could not bind to address 0.0.0.0:xxxx
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 14...

The trick, I found, was to edit the configuration files, and add listen <ipaddress>:<port>

where <ipaddress> is the public IP address of the server, not the loopback address.
  • boiled_elephant
  • Newbie
  • Newbie
  • User avatar
  • Posts: 14
  • Loc: Lancaster

Post 3+ Months Ago

dananos wrote:
With reference to the question above,

I was getting the following error:

Installing the Apache2.2 service
The Apache2.2 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
httpd.exe: Could not reliably determine the server's fully qualified domain na
, using xxx.xxx.xxx.xx for ServerName
(OS 10048)Only one usage of each socket address (protocol/network address/port
is normally permitted. : make_sock: could not bind to address 0.0.0.0:xxxx
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 14...

The trick, I found, was to edit the configuration files, and add listen <ipaddress>:<port>

where <ipaddress> is the public IP address of the server, not the loopback address.


I was having the exact same issue and this worked for me, too. I don't know why the .conf was set, by default, to just "listen 80" with no address. Anyway, thank you, and thanks to the other posters and forum in general for making my apache server work :>
  • toy
  • Born
  • Born
  • toy
  • Posts: 1

Post 3+ Months Ago

hey dananos
thanks for the post

as im a complete moron with sysadmin stuff
i must ask you -
when you say "the public IP address of the server"
how i find that information?

im trying to run apache on my personal window xp laptop

thanks for your help
  • phpartest003
  • Born
  • Born
  • phpartest003
  • Posts: 1

Post 3+ Months Ago

Hi guys,
Thank you in advance for your help, actually regarding ":make_sock: could not bind to address 0.0.0.:80 " problem I have the same problem
I have the same problem also,but I don't use IIS and I checked the "httpd" file everything is O.K!
so any other comments I guess it is network prob, this is my 2nd day with PHP and Apache.
Thanks alot,,
Jo.
  • jeyhey
  • Born
  • Born
  • jeyhey
  • Posts: 1

Post 3+ Months Ago

Hi,

I had the same problem. By me the problem was Skype running. When I turned it off, the Apache server started correctly.

If I start Skype after the Apache, both work fine.
  • Zealous
  • Guru
  • Guru
  • User avatar
  • Posts: 1244
  • Loc: Sydney

Post 3+ Months Ago

just use xampp, it works wonders for windows but i personally rather lampp on linux. Better server control using linux, i have it running on vmware so when i need to use it boot up ubuntu and pump away.
  • lenoirdevinci
  • Born
  • Born
  • lenoirdevinci
  • Posts: 1

Post 3+ Months Ago

I gat the same problem on Windows Server 2008 so I stopped the Web Deployement Service in the Task Manager

phpartest003 wrote:
Hi guys,.
Thank you in advance for your help, actually regarding ": make_sock: could not bind to address 0.0.0.: 80" problem I have the same problem
I have the same problem also, but I do not use IIS and I checked the "httpd" file everything is okay!
so any other comments I guess it is network prob, this is my 2nd day with PHP and Apache.
Thanks alot,
OJ.
  • webdev007
  • Born
  • Born
  • webdev007
  • Posts: 2

Post 3+ Months Ago

OMG... You guys are amazing. Thanks to jeyhey. I had skype running as well. As soon as I turned off skype, I was able to start Apache service. I look forward to interacting more with this group.
  • webdev007
  • Born
  • Born
  • webdev007
  • Posts: 2

Post 3+ Months Ago

jeyhey wrote:
Hi,

I had the same problem. By me the problem was Skype running. When I turned it off, the Apache server started correctly.

If I start Skype after the Apache, both work fine.


Hi Jeyhey,
Thanks for your help. I had skype running and after I turned it off, the Apache server started for me. Would have taken a while to figure out if not for your post.

Post Information

  • Total Posts in this topic: 20 posts
  • Users browsing this forum: No registered users and 76 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.