Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2003 18:31:45 +0100
From:      Alex <freebsd-reply@akruijff.dds.nl>
To:        Freebsd Questions <freebsd-questions@freebsd.org>
Subject:   Apache 2.x conf with SSL startup problem
Message-ID:  <18927333914.20030131183145@dds.nl>

next in thread | raw e-mail | index | archive | help

Dear/Beste users,

I am a FreeBSD and Apache 2.x with SSL user. The webserver works when
started by hand (apachectl start-ssl), but it causes the machine to
hang during a boot. You still can logon to it from another machine.

I didn't get a certification from a CA but created one by hand. During
the creation i was asked for a password. Apache asks for this
password when it starts up. It doesn't print a request message on the
screen and I don't always have physical access to the machine so i
need to get the password to it some other way. I looked at the docs
from apache about apachectl but could not find a way to do that.



The machine runs FreeBSD 4.7-RELEASE-p2 #0 compiled at Sun Dec 22
00:29:05 CET 2002 and is a i386.

Server version: Apache/2.0.44
Server built:   Jan 25 2003 14:12:28


From pstree:
>  \-+- 00007 root sh /etc/rc autoboot
>    \-+- 00180 root sh /etc/rc autoboot
>      \-+- 00181 root /bin/sh /usr/local/etc/rc.d/apache2.sh start
>        \-+- 00182 root /bin/sh /usr/local/sbin/apachectl startssl
>          \--- 00184 root /usr/local/sbin/httpd -k start -DSSL

Apache2 startup script
> unix1# cat /usr/local/etc/rc.d/apache2.sh
> #!/bin/sh
> PREFIX=/usr/local
> 
> case "$1" in
> start)
>         [ "ssl" = "ssl" -a -f "$PREFIX/etc/apache2/ssl.crt/server.crt" ] && SSL=ssl
>         [ -x ${PREFIX}/sbin/apachectl ] && ${PREFIX}/sbin/apachectl start${SSL} > /dev/null && echo -n ' apache2'
>         ;;
> stop)
>         [ -r /var/run/httpd.pid ] && ${PREFIX}/sbin/apachectl stop > /dev/null && echo -n ' apache2'
>         ;;
> *)
>         echo "Usage: `basename $0` {start|stop}" >&2
>         ;;
> esac
> 
> exit 0


-- 
Best regards/Met vriendelijke groet,
Alex


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18927333914.20030131183145>