From owner-freebsd-stable Tue Oct 16 6:28:55 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mip.co.za (puck.mip.co.za [209.212.106.44]) by hub.freebsd.org (Postfix) with ESMTP id F1F8A37B408 for ; Tue, 16 Oct 2001 06:28:46 -0700 (PDT) Received: from patrick (patrick.mip.co.za [10.3.13.181]) by mip.co.za (8.9.3/8.9.3) with SMTP id PAA18371; Tue, 16 Oct 2001 15:28:35 +0200 (SAST) (envelope-from patrick@mip.co.za) From: "Patrick O'Reilly" To: "Hans de Hartog" Cc: "FreeBSD Stable List" Subject: RE: Howto install apache+mod_ssl+mod_php4 ? Date: Tue, 16 Oct 2001 15:31:27 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-reply-to: <3BCC2EBD.30807@rootsr.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! I picked up a funny with this combination which might be the same problem you are having. When mod_ssl is installed it add its LoadModule directive inside a conditional block in httpd.conf so that you can do and 'apachectl start' or 'apachectl startssl' to start with or without SSL support. That's fine. The problem is that after that the PHP4 installation tries to add its LoadModule directive after the last one found in the httpd.conf file, and so the PHP4 module will only load conditionally (IF you do an 'apachectl startssl'). What's even worse is that when you do an 'apachectl restart' (which is what the 'make install' for apache and PHP4 attempt to do) the LoadModule for PHP4 is never loaded. So, in summary, edit your /usr/local/etc/apache/httpd.conf file as follows: You will find something like this: ---------------------------------------- LoadModule ssl_module libexec/apache/libssl.so LoadModule php4_module libexec/apache/libphp4.so ---------------------------------------- Change it like so: ---------------------------------------- LoadModule ssl_module libexec/apache/libssl.so LoadModule php4_module libexec/apache/libphp4.so ---------------------------------------- And, similarly: ---------------------------------------- AddModule mod_ssl.c AddModule mod_php4.c ---------------------------------------- should be: ---------------------------------------- AddModule mod_ssl.c AddModule mod_php4.c ---------------------------------------- Hope this is what you need. Patrick. > -----Original Message----- > From: owner-freebsd-stable@FreeBSD.ORG > [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Hans de Hartog > Sent: 16 October 2001 14:58 > To: freebsd-stable@FreeBSD.ORG > Subject: Howto install apache+mod_ssl+mod_php4 ? > > > Just installed 4.4-release from 18 september. > I want apache + ssl + php4. > mod_php4 requires vanilla apache (1.3.20). > > I tried two install-sequences (with pkg_add): > > 1. apache-1.3.20 > mod_php4-4.0.6_4 > apache+mod_ssl-1.3.20+2.8.4 > > 2. apache+mod_ssl-1.3.20+2.8.4 > apache-1.3.20 > mod_php4-4.0.6_4 > > Either sequence of installing gives trouble > (either httpd.conf errors or supposedly > damaged .so files). > > I ran FreeBSD 4.3 before and there I could > install apache+mod_ssl-1.3.14+2.7.1_1 and > mod_php-4.0.4 separately without problems. > > Thank you for your efforts. > > Hans de Hartog. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message