Gentoo Archives: gentoo-user

From: Jerry McBride <mcbrides9@×××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /etc/init.d/apache2 fails, but apache will run
Date: Mon, 29 Sep 2008 02:01:02
Message-Id: 200809282200.40661.mcbrides9@comcast.net
In Reply to: [gentoo-user] /etc/init.d/apache2 fails, but apache will run by Adam Carter
1 On Sunday 28 September 2008 09:26:06 pm Adam Carter wrote:
2 > rix adam # /etc/init.d/apache2 start
3 > * Starting apache2 ...
4 > (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
5 > no listening sockets available, shutting down
6 > Unable to open logs [
7 > ok ] rix adam #
8 >
9 > The socket is not in use and log dir perms are ok, and;
10 >
11 > rix adam # apache2 -f /etc/apache2/httpd.conf
12 > rix adam # pgrep -lf apach
13 > 17740 apache2 -f /etc/apache2/httpd.conf
14 > 17741 apache2 -f /etc/apache2/httpd.conf
15 > 17744 apache2 -f /etc/apache2/httpd.conf
16 > 17772 apache2 -f /etc/apache2/httpd.conf
17 > rix adam #
18 >
19 > So, how do I troubleshoot this?
20
21 I just did a google search on the error "(98)Address already in use:
22 make_sock: could not bind to address 0.0.0.0:80
23 > no listening sockets available, shutting down" and it turned up so much that
24 I just don't even feel like reading it for you...
25
26 What I suspect and what's mentioned in the pages that google turned up,
27 something else is bound to port 80.
28
29 Do a "ps -A | grep apache" and see if a stray daemon is running around... i
30 not then go to /etc/apache2/vhosts.d and make sure both config files
31 are "pointing" to the same host that apache is running on...
32
33 That's where I would start.
34
35
36 --
37
38 *****************************************************************************
39
40 From the desk of:
41 Jerome D. McBride
42
43 21:56:02 up 1 day, 2:13, 5 users, load average: 0.14, 0.07, 0.02
44
45 *****************************************************************************

Replies

Subject Author
RE: [gentoo-user] /etc/init.d/apache2 fails, but apache will run Adam Carter <Adam.Carter@×××××××××.au>