Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

httpd.exe: Could not reliably determine the server's fully qualified d

Status
Not open for further replies.
Nov 25, 2008
1
US
Does someone know how to resolve this error message?

httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.2 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:80
no listening sockets available, shutting down Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 18...

Background: Windows xp, want to set up a localhost testing environment. Using David Powers "PHP for Dreamweaver 8 and these instructions from apache.org >>
What I get? ERROR The requested operation has failed!


What is a listening socket? Where do I configure it?

 
Open httpd.conf and edit the "ServerName" directive. It should read, "ServerName localhost" Make sure the "Listen" directive is set to "Listen *:80". If this machine has more than one NIC, then you will want to use the ip address you want apache to listen on rather than *. Make sure nothing else is running on port 80. Sometimes it is another webserver or a p2p program for sharing files over the internet. You might also check that another instance of apache isn't running. This can happen when you install apache as a service. If you don't have a monitor installed, you won't know it's running and you will get the error saying it can't bind to that socket.

 
use netstat -an while your apache is down to see if something is listening on port 80.
 
httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.2 for ServerName

can anyone help how to over come this error?

thanking you.

 
A fully qualified domain name would be something like mydomain.com. If you do not own a domain name, you will need to set apache up to use localhost as the domain name. As I stated earlier, edit the "ServerName" line so that it reads "ServerName localhost". Any time you edit this file, you need to restart apache.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top