From owner-freebsd-questions Fri Jan 31 9:32: 9 2003 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 3CCB337B401 for ; Fri, 31 Jan 2003 09:32:07 -0800 (PST) Received: from smtp10.wxs.nl (smtp10.wxs.nl [195.121.6.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACDE243E4A for ; Fri, 31 Jan 2003 09:32:06 -0800 (PST) (envelope-from akruijff@dds.nl) Received: from cybertron.kruijff (ipd50a97ba.speed.planet.nl [213.10.151.186]) by smtp10.wxs.nl (iPlanet Messaging Server 5.2 Patch 1 (built Aug 19 2002)) with ESMTP id <0H9L00CH2A13V1@smtp10.wxs.nl> for freebsd-questions@freebsd.org; Fri, 31 Jan 2003 18:31:51 +0100 (MET) Date: Fri, 31 Jan 2003 18:31:45 +0100 From: Alex Subject: Apache 2.x conf with SSL startup problem To: Freebsd Questions Reply-To: Alex Message-id: <18927333914.20030131183145@dds.nl> MIME-version: 1.0 X-Mailer: The Bat! (v1.62 Christmas Edition) Personal Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT X-Priority: 3 (Normal) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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