Re: apache2: no listening sockets



On Mon, 2007-04-23 at 12:06 +0200, Jochen Schulz wrote:
michael:

michael@manchester-campaigns:~$ sudo /etc/init.d/apache2 restart
Forcing reload of web server (apache2)...apache2: Could not reliably
determine the server's fully qualified domain name, using 127.0.0.1 for
ServerName

You may want to set ServerName in your apache configuration to get rid
of this warning.

httpd (no pid file) not running
apache2: Could not reliably determine the server's fully qualified
domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address
127.0.0.1:80

This means that some program is already listening on localhost:80. It
may be a stale apache process which you could just kill or it is another
webserver you have installed previously. In any case, you can set up
apache to listen on a port other than 80 to mitigate this problem.

J.

Jochen, thanks for that. Using port 81 and it works (still need to sort
out ServerName but not sure what the 'httpd not running relates to?)

Also I think I shouldn't have anything else (already) running on port
80... but 'nmap' gives
michael@manchester-campaigns:~$ nmap -sV localhost

Starting Nmap 4.20 ( http://insecure.org ) at 2007-04-25 22:25 BST
Stats: 0:01:04 elapsed; 0 hosts completed (1 up), 1 undergoing Service
Scan
Service scan Timing: About 95.00% done; ETC: 22:26 (0:00:03 remaining)
Interesting ports on manchester-campaigns (127.0.0.1):
Not shown: 1677 closed ports
PORT STATE SERVICE VERSION
9/tcp open discard?
13/tcp open daytime
21/tcp open ftp OpenBSD ftpd 6.4 (Linux port 6.4)
22/tcp open ssh OpenSSH 4.2p1 Debian 5 (protocol 2.0)
25/tcp open smtp Exim smtpd 3.36
37/tcp open time (32 bits)
79/tcp open finger Debian fingerd
80/tcp open tcpwrapped
81/tcp open http Apache httpd 2.2.3 ((Debian))

but I am unsure what 'tcpwrapped' is...

Thanks, Michael


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: apache2: no listening sockets
    ... You may want to set ServerName in your apache configuration to get rid ...
    (Debian-User)
  • Exchange access for Vertical market software
    ... SBS2000, XP Pro SP2 clients. ... We have some vertical market software that needs to send ... servername, then username & port number. ...
    (microsoft.public.backoffice.smallbiz2000)
  • Re: apache2: no listening sockets
    ... apache to listen on a port other than 80 to mitigate this problem. ... out ServerName but not sure what the 'httpd not running relates to?) ...
    (Debian-User)
  • Re: WEb RDP over Port 80
    ... message that the servername is invalid. ... another port than 3389. ... establish a connection over my favorite port. ... what to modify to establish the connection via Port 80. ...
    (microsoft.public.scripting.vbscript)
  • Re: WEb RDP over Port 80
    ... Babu VT schrieb: ... another port than 3389. ... for a solution that i can type the servername on the webform and it ... establish a connection over my favorite port. ...
    (microsoft.public.scripting.vbscript)

Loading