Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Oct 2005 23:08:22 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        amcinroy <bigamcinroy@mchsi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Accessing Apache
Message-ID:  <4340AEB6.8000305@daleco.biz>
In-Reply-To: <000001c5c7c9$5ea765f0$d001a8c0@firstsecurity.local>
References:  <000001c5c7c9$5ea765f0$d001a8c0@firstsecurity.local>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
amcinroy wrote:

>Dear support, I am trying to setup intrusion detection with snort, acid,
>mysql and freebsd. I am using as a guide Hack #59 from Dru Lavigne's BSD
>Hacks book. Everything is installed and working up to the point where I try
>to access my webpage. When I type in http://localhost/snort/acid_main.php I
>receive the message: an error occurred while loading the page. Could not
>connect to localhost. I think it is a user or password related error and
>have tried adding users to the mysql database with no success. Any help for
>this newb would be much appreciated.
>
>
>Alan McInroy
>
>  
>


Hi, Alan!

This isn't "support", per se --- it's a mailing list.  But, it's the
primary option ;-)

Are you sure Apache is running?  Sorry for what may seem
like a dumb question, but the error message you quote is
exactly what you see, on many browsers, when httpd is not
running.

To check is Apache is running, try:

$ps -aux | grep httpd

You should see multiple lines (Maybe 4, 5, or more) that
show an "httpd" process is listening.

Another way to go about this would be to run `netstat -anf inet`,
and looking for a entry mentioning port 80 and "LISTEN".

If you can verify that Apache is indeed running, then I might
test resolution of the "localhost" name.  But, it's much more
likely that you can resolve "localhost" fine, but Apache isn't
listening on port 80.

HTH,

Kevin Kinsey



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4340AEB6.8000305>