On Fri, Apr 26, 2002 at 03:41:37PM -0400, Cheng Yan wrote: > As root, I did the following: <snip>
> 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 Trying 127.0.0.1... 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 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME 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) HTH Cheers, Simon -- A debugged program is one for which you have not yet found the conditions that make it fail. -- Jerry Ogdin -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>