From: Adam Carter <Adam.Carter@optus.com.au>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] /etc/init.d/apache2 fails, but apache will run
Date: Mon, 29 Sep 2008 12:17:23 +1000 [thread overview]
Message-ID: <707E41AE68E444499861C6B248AB868453A857ECC4@excprdmbxw002.optus.com.au> (raw)
In-Reply-To: <200809282200.40661.mcbrides9@comcast.net>
> On Sunday 28 September 2008 09:26:06 pm Adam Carter wrote:
> > rix adam # /etc/init.d/apache2 start
> > * Starting apache2 ...
> > (98)Address already in use: make_sock: could not bind to
> address 0.0.0.0:80
> > no listening sockets available, shutting down
> > Unable to open logs
> [
> > ok ] rix adam #
> >
> > The socket is not in use and log dir perms are ok, and;
> >
> > rix adam # apache2 -f /etc/apache2/httpd.conf
> > rix adam # pgrep -lf apach
> > 17740 apache2 -f /etc/apache2/httpd.conf
> > 17741 apache2 -f /etc/apache2/httpd.conf
> > 17744 apache2 -f /etc/apache2/httpd.conf
> > 17772 apache2 -f /etc/apache2/httpd.conf
> > rix adam #
> >
> > So, how do I troubleshoot this?
>
> I just did a google search
<SNIP> something else is bound to port 80.
As stated above - socket 80 is not in use (according to netstat). If there was, "apache2 -f /etc/apache2/httpd.conf" would also fail, would it not?
> Do a "ps -A | grep apache" and see if a stray daemon is
> running around... I
I did that, there were no apache processes running.
> not then go to /etc/apache2/vhosts.d and make sure both config files
> are "pointing" to the same host that apache is running on...
Again, if the config was broken then I'd expect # apache2 -f /etc/apache2/httpd.conf to also fail.
I'd say the problem is related to how the gentoo stuff starts the daemon, or maybe conf.d/apache2, but nothing below looks unusual to me;
rix apache2 # grep ^[^#] /etc/conf.d/apache2
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D SSL -D SSL_DEFAULT_VHOST -D PHP5"
CONFIGFILE=/etc/apache2/httpd.conf
next prev parent reply other threads:[~2008-09-29 2:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-29 1:26 [gentoo-user] /etc/init.d/apache2 fails, but apache will run Adam Carter
2008-09-29 2:00 ` Jerry McBride
2008-09-29 2:17 ` Adam Carter [this message]
2008-09-29 11:39 ` Xav'
2008-09-29 15:11 ` Simon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=707E41AE68E444499861C6B248AB868453A857ECC4@excprdmbxw002.optus.com.au \
--to=adam.carter@optus.com.au \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox