public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jerry McBride <mcbrides9@comcast.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] /etc/init.d/apache2 fails, but apache will run
Date: Sun, 28 Sep 2008 22:00:40 -0400	[thread overview]
Message-ID: <200809282200.40661.mcbrides9@comcast.net> (raw)
In-Reply-To: <707E41AE68E444499861C6B248AB868453A857EC5E@excprdmbxw002.optus.com.au>

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 on the error "(98)Address already in use: 
make_sock: could not bind to address 0.0.0.0:80
> no listening sockets available, shutting down" and it turned up so much that 
I just don't even feel like reading it for you...

What I suspect and what's mentioned in the pages that google turned up, 
something else is bound to port 80. 

Do a "ps -A | grep apache" and see if a stray daemon is running around... i 
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...

That's where I would start. 


-- 

*****************************************************************************
                                       
                             From the desk of:
                             Jerome D. McBride
                                       
    21:56:02 up 1 day,  2:13,  5 users,  load average: 0.14, 0.07, 0.02
 
*****************************************************************************



  reply	other threads:[~2008-09-29  2:01 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 [this message]
2008-09-29  2:17   ` Adam Carter
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=200809282200.40661.mcbrides9@comcast.net \
    --to=mcbrides9@comcast.net \
    --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