tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Stewart <>
Subject Re: how to configure apache 2.0.35 with "--enable-mods-shared=most" switch on
Date Sat, 27 Apr 2002 13:38:58 GMT
On Fri, Apr 26, 2002 at 03:41:37PM -0400, Cheng Yan wrote:
> As root, I did the following:

> However, I can not invoke apache:
> root@tbird 75 %> /usr/tomcat/apache_source_withMod/bin/apachectl start
> (125)Address already in use: make_sock: could not bind to address [::]:80
> no listening sockets available, shutting down
> ./apachectl start: httpd could not be started

It looks like something else has already bound itself to port
80. Perhaps it's another installation of apache? To find out, just do
a telnet to localhost port 80:

sms@mite:~$ telnet localhost 80
Connected to localhost.
Escape character is '^]'.
GET http://localhost/index.html HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 27 Apr 2002 14:37:57 GMT
Server: Apache/1.3.24 (Unix)
Content-Location: index.html.en
Vary: negotiate,accept-language,accept-charset
TCN: choice
Last-Modified: Fri, 04 May 2001 00:00:38 GMT
ETag: "205db-5b0-3af1f126;3cc08780"
Accept-Ranges: bytes
Content-Length: 1456
Connection: close
Content-Type: text/html
Content-Language: en
Expires: Sat, 27 Apr 2002 14:37:57 GMT

If you get something like this, then another program is already
running. A neater way of doing this might be to use "lsof":

sms@mite:~$ sudo lsof -i :80
httpd   3030 root   16u  IPv4  13345       TCP *:www (LISTEN)
httpd   3031 root   16u  IPv4  13345       TCP *:www (LISTEN)
httpd   3032 root   16u  IPv4  13345       TCP *:www (LISTEN)
httpd   3033 root   16u  IPv4  13345       TCP *:www (LISTEN)
httpd   3034 root   16u  IPv4  13345       TCP *:www (LISTEN)
httpd   3035 root   16u  IPv4  13345       TCP *:www (LISTEN)
httpd   3039 root   16u  IPv4  13345       TCP *:www (LISTEN)




A debugged program is one for which you have not yet found the conditions
that make it fail.
		-- Jerry Ogdin

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message