Subject: Re: Apache/1.6.2 problem
To: None <ngilbert@acm.org, netbsd-help@netbsd.org>
From: Gan Uesli Starling <alias@starling.us>
List: netbsd-help
Date: 06/12/2004 16:11:26
Nathan Gilbert wrote:
> Hello:
>
> I am running 1.6.2 and I am trying to get Apache 2.0.49nb1 up and running. The
> pkgs installed perfectly and I believe I have the config files in the right
> places.
>
> The problem is that whenever I try to start Apache no errors are given,
> meaning it appears everything has started fine, but I can't acces the default
> website. The connection is always refused.
>
> When I use apachectl stop, I am given; 'httpd (no pid file found) not
> running'.
>
> Any insights to the problem?
>
> Thanks in advance,
> NG
I am running same as you. So maybe my poor insight can
help. Just maybe...
See if it is really running from the console like this...
<snip>
baal: {2} ps -xa | grep httpd
192 ?? Ss 0:03.39 /usr/pkg/sbin/httpd -k start -DSSL
234 ?? S 0:00.02 /usr/pkg/sbin/httpd -k start -DSSL
235 ?? S 0:00.02 /usr/pkg/sbin/httpd -k start -DSSL
236 ?? S 0:00.02 /usr/pkg/sbin/httpd -k start -DSSL
237 ?? S 0:00.02 /usr/pkg/sbin/httpd -k start -DSSL
238 ?? S 0:00.02 /usr/pkg/sbin/httpd -k start -DSSL
379 ?? S 0:00.01 /usr/pkg/sbin/httpd -k start -DSSL
baal: {3}
</snip>
Your answer will be different from mine because I am running
SSL along with regular. But you should get a PID that way.
Then also do this...
<snip>
baal: {5} more /etc/rc.conf
# $NetBSD: rc.conf,v 1.96 2000/10/14 17:01:29 wiz Exp $
#
# see rc.conf(5) for more information.
#
# Use program=YES to enable program, NO to disable it. program_flags are
# passed to the program on the command line.
#
# Load the defaults in from /etc/defaults/rc.conf (if it's readable).
# These can be overridden below.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
fi
# If this is not set to YES, the system will drop into single-user mode.
#
rc_configured=YES
# Add local overrides below
#
wscons=YES
hostname="baal.amalekite.net"
apache=YES
apache_start="startssl"
sshd=YES
xdm=YES
routed=YES
ipfilter=YES
ipnat=YES
baal: {6}
</snip>
See where I have the two lines about Apache? The YES-line is for
regular and the other is for SSL. If that is there then Apache
should start on boot, which is how I always do.
There is probably more to it, but I'd have to hit the books. And
at least it is a start for you to look.
Read ya later,
Gan
--
Mistera Sturno - Rarest Extinct Bird
<(+)__ Gan Uesli Starling
((__/)=- Kalamazoo, MI, USA
`||`
++ http://starling.us