Date: Sun, 5 Aug 2001 06:05:16 -0700 (PDT) From: Dirk Gouders <gouders@et.bocholt.fh-ge.de> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/29468: apache+ssl-1.3.12.1.40 port doesn't install "ready to use" Message-ID: <200108051305.f75D5GF06569@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 29468 >Category: ports >Synopsis: apache+ssl-1.3.12.1.40 port doesn't install "ready to use" >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 05 06:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dirk Gouders >Release: 4.3 >Organization: Polytechnich University in Bocholt >Environment: FreeBSD karga 4.3-RELEASE FreeBSD 4.3-RELEASE #2: Sun Jul 15 11:03:20 CEST 2001 root@karga:/usr/src/sys/compile/KARGA i386 >Description: I Installed the port apache+ssl-1.3.12.1.40 but the server would not even start up. I'll try to describe what problems I noticed and what I had to do to get the server working: 1. Allthough the configuration file was installed under /usr/local/etc/apache/httpsd.conf the script /usr/local/sbin/httpsdctl doesn't tell httpsd(8) anything about this non-default configuration file. The result was the following error after invoking '/usr/local/sbin/httpsdctl start': fopen: No such file or directory httpsd: could not open document config file /usr/local/etc/apache/httpd.conf /usr/local/sbin/httpsdctl start: httpd could not be started 2. After I moved the configuration file to the default /usr/local/etc/apache/httpd.conf the server still couldn't be started. The reason could be found in the file /var/log/httpsd_error_log: [Sat Aug 4 21:36:32 2001] [crit] Required SSLCacheServerPort missing 3. After I created the directory /usr/local/www/cache and added the following lines SSLCacheServerPath /usr/local/sbin/gcache SSLCacheServerPort /usr/local/www/cache/karga.test.ssl.cache.socket SSLSessionCacheTimeout 300 to the configuration file, the server still doesn't start because of [Sat Aug 4 21:43:13 2001] [crit] No SSL Certificate set for server karga.et.bocholt.fh-ge.de:80 (OK - that is not really a problem of the port but if the server wouldn't run without an SSL Certificate, I think it would be convenient if the user would at least be informed how to generate a certificate). 4. Now, I created a test certificate as described at http://www.apache-ssl.org/ and added the following lines to the configuration file to tell the server where it can find the certificate files: SSLCertificateKeyFile /usr/local/www/certs/karga.test.key SSLCertificateFile /usr/local/www/certs/karga.test.cert 5. Finally I had to change the Port entry in the configuration file from 80 to 443 and after that the server started up and worked. >How-To-Repeat: Install the port and try to start the server. >Fix: A 'make install' should install a suitable configuration file, create needed directories - maybe even guide the user to the generation of a certificate. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108051305.f75D5GF06569>