From owner-freebsd-stable Tue Oct 16 21:19:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by hub.freebsd.org (Postfix) with ESMTP id 2A54837B407 for ; Tue, 16 Oct 2001 21:19:42 -0700 (PDT) Received: from netcom1.netcom.com (user-2iniul9.dialup.mindspring.com [165.121.122.169]) by barry.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id AAA09562; Wed, 17 Oct 2001 00:19:33 -0400 (EDT) Received: by netcom1.netcom.com (Postfix, from userid 1000) id 700C71336B; Tue, 16 Oct 2001 21:19:07 -0700 (PDT) From: Mike Harding To: dehartog@rootsr.com Cc: freebsd-stable@freebsd.org In-reply-to: <3BCCB399.9060106@chello.nl> (message from Hans de Hartog on Wed, 17 Oct 2001 00:24:25 +0200) Subject: Re: Howto install apache+mod_ssl+mod_php4 ? References: <3BCCB399.9060106@chello.nl> Message-Id: <20011017041907.700C71336B@netcom1.netcom.com> Date: Tue, 16 Oct 2001 21:19:07 -0700 (PDT) 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 Step up to installing from source - you can choose what components you want and you don't get into dependency hell. You can even build your own packages if you like, it's not magic... - mIKE h. Date: Wed, 17 Oct 2001 00:24:25 +0200 From: Hans de Hartog Reply-To: dehartog@rootsr.com Organization: rootsr User-Agent: Mozilla/5.0 (X11; U; FreeBSD 4.3-STABLE i386; en-US; rv:0.9.1) Gecko/20010621 X-Accept-Language: nl, en Content-Type: text/plain; charset=us-ascii; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Precedence: bulk Patrick O'Reilly wrote: > 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. > Sounds reasonable and I made that change. However, installing mod_php4 also installs the vanilla apache over the already existing apache+mod_ssl (beause the built-in dependency on apache-1.3.20) thereby not only modifying/destroying hhtpd.conf but lots of other files (including httpd itself). Starting apache then gives: Syntax error on line 208 of /usr/local/etc/apache/httpd.conf: API module structure `define_module' in file /usr/local/libexec/apache/mod_define.so is garbled - perhaps this is not an Apache module DSO? That's probably because all the modules that come with apache+mod_ssl are overwritten by the versions from the vanilla apache. I guess there must be somebody out there that has apache + ssl + php4 working on FreeBSD 4.4???? And what was the exact sequence of installations of which versions? And was that straight from pub/FreeBSD/ports/i386/packages-4.4-release or did you build from the ports directory (and with what additional flags/tricks)??? Thanks 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