Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How To Install Apache Web Server on Windows

  Asked By: Danielle    Date: Jun 24    Category: Java    Views: 716
  

I need Information about Apache Web Server. I have Installed the
Apache but i am getting the error from the Server .
This is the Error I am getting


(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.
24...

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Cesara Fernandez     Answered On: Jun 24

open httpd.conf file under apache/conf directory and look for line
starting with "ServerName". For running apache  web server  for testing
on local machine you should use localhost ( or 127.0.0.1). So that
line should look like
Servername localhost

 
Answer #2    Answered By: Daimon Jones     Answered On: Jun 24

The problem you are facing is that the apache  software is accessing
the same port that were used by some other web  server.
close all the web server.
try the link
http://127.0.0.1:8080/ instead of http://127.0.0.1:80/
other problem might be your apache server  is installed  in some other port
check the config file

 
Answer #3    Answered By: Aabirah Khan     Answered On: Jun 24

Thanks for replay to me, it's working well.you know How to Configure Tomcat with Apache Web Server. If you know, tell me the processor or site URL .

 
Answer #4    Answered By: Utsav Shah     Answered On: Jun 24

A week before I also had the same problem and tried host of things to
eradicate the problem. error  message was almost same but the code was OS
10038 in my case.
Ultimately I gave up installing Apache2 on Win 98.

C:\Program Files\Apache Group\Apache2\bin>apache
[Wed May 26 16:35:43 2004] [crit] (OS 10038)Socket operation on non-socket:
make
_sock: for address  0.0.0.0:8080, apr_socket_opt_set: (SO_KEEPALIVE)
no listening sockets  available, shutting down
Unable to open  logs

Try This:
After attempting to run Apache, open 'My Computer' (for example) and type in

http://localHost and then http://127.0.0.1

Do you get a welcome message or an error?

Also, are you installing any addition to Apache, like PHP, ASP, MySQL, etc?

You might also want to check out this tutorial:

internetmaster.com/installtutorial/index.htm

It shows how to install  Apache, PHP, and MySQL. If you are not installing
the other two, just concentrate on the apache  part.

Try This:
I found out that this error tells that the port (8080) must be already taken
and used by some other application. To test it, press  'Start' > 'Run' and
type in CMD . In the new window type this following line

netstat -an |find /i "listening"

Also, do you have some sort of firewall installed? Of so, try disabling it
temporarily and run Apache to see if the error reappears.

Another idea would be to downgrade your Apache version. I found out that the
latest 2.xx are not as good as previous ones. Following is a link to 1.3.31
version. Its still actively maintained and developed.

apache.secsup.org/.../apache_1.3.31-win32-x86-no_sr\
c.exe

Try This:
- Install Apache2
- Go to Apache2\conf folder and open httpd.conf with a notepad
- look for line that says Timeout and change the number after that to 999
- look for line that says Listen and change the number after that to 85
(thats the new port number)
- start Apache

Let me know if any of these or otherwise you managed to sort things out.

 
Didn't find what you were looking for? Find more on How To Install Apache Web Server on Windows Or get search suggestion and latest updates.




Tagged: