From owner-freebsd-questions@FreeBSD.ORG Mon Oct 3 04:08:30 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B3DDC16A41F for ; Mon, 3 Oct 2005 04:08:30 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E79043D46 for ; Mon, 3 Oct 2005 04:08:29 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j9348R8N054091; Sun, 2 Oct 2005 23:08:28 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4340AEB6.8000305@daleco.biz> Date: Sun, 02 Oct 2005 23:08:22 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050923 X-Accept-Language: en-us, en MIME-Version: 1.0 To: amcinroy References: <000001c5c7c9$5ea765f0$d001a8c0@firstsecurity.local> In-Reply-To: <000001c5c7c9$5ea765f0$d001a8c0@firstsecurity.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Accessing Apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2005 04:08:30 -0000 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