From owner-freebsd-questions@FreeBSD.ORG Tue Jan 25 23:53:13 2005 Return-Path: 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 142E516A4CE for ; Tue, 25 Jan 2005 23:53:13 +0000 (GMT) Received: from chaos.eyede.com (chaos.eyede.com [202.21.136.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FE8343D49 for ; Tue, 25 Jan 2005 23:53:12 +0000 (GMT) (envelope-from freebsd@eyede.com) Received: from localhost (localhost.eyede.com [127.0.0.1]) by chaos.eyede.com (Postfix) with ESMTP id 2ADD054A2; Wed, 26 Jan 2005 12:54:19 +1300 (NZDT) Received: from [172.16.99.14] (ewsn04.ntdns.eyede.com [172.16.99.14]) by chaos.eyede.com (Postfix) with ESMTP id 8F4C5549F; Wed, 26 Jan 2005 12:54:17 +1300 (NZDT) Message-ID: <41F6DBE4.5080706@eyede.com> Date: Wed, 26 Jan 2005 12:53:08 +1300 From: Nigel Wohlers Organization: Eyede Systems Ltd User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John J Vaughan References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Amavisd at eyede.com cc: freebsd-questions@freebsd.org Subject: Re: Configuring mod_php4 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nigel@eyede.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2005 23:53:13 -0000 John J Vaughan wrote: > To answer my own question, I used the php4-extensions port and selected > what I needed. > > #cd lang/php4-extensions > #make config > selected the extensions I wanted > #portinstall php4-extensions > > -John > > > > On Tuesday, January 25, 2005, at 02:37 PM, John J Vaughan wrote: > >> I am trying to get mod_php4 loaded with the additional options -DEAPI >> (I'm using phpMyAdmin) and --enable-calendar. I read the makefile, >> which didn't have any CONFIGURE_ARGS+= >> >> First I tried using portupgrade (I already have a running 5.3-RELEASE >> w/ Apache1.3-modssl, mysql-4.1.9, and mod_php4 with standard config >> args): >> So I forced an upgrade using the added options >> # portupgrade -fM '-DEAPI--enable-calendar' mod_php4 >> That seemed to go smoothly. Afterwards, I checked my httpd.conf and >> started Apache. >> >> When I looked at phpinfo.php, only the following options were listed: >> './configure' '--enable-versioning' '--enable-memory-limit' >> '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' >> '--disable-all' '--with-regex=php' '--disable-cli' >> '--with-apxs=/usr/local/sbin/apxs' '--disable-ipv6' >> '--prefix=/usr/local' 'i386-portbld-freebsd5.3' >> >> So, then I tried it manually: >> Shutdown apache >> #cd /usr/ports/www/mod_php4 >> #pkg_delete -f mod_php4 >> #make -DEAPI--enable-calendar >> #make install >> Restarted Apache >> >> Still the same options listed in phpinfo.php. >> >> Thanks for your help. >> -John Hi John, Sometimes it may be easier to edit the Makefile and add your own CONFIGURE_ARGS to the list instead of using the php4-extensions port. For instance if you want mm based sessions or you want https as a registered php stream. This method may not suit people who just want an easy way to keep their servers up-to-date, mind you. Regards, Nigel.