From owner-freebsd-questions@FreeBSD.ORG Wed Apr 1 13:29:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D91181065672 for ; Wed, 1 Apr 2009 13:29:17 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 803558FC12 for ; Wed, 1 Apr 2009 13:29:17 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (gate.lan.rachie.is-a-geek.net [192.168.2.10]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 705FD7E818; Wed, 1 Apr 2009 05:29:15 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Wed, 1 Apr 2009 15:29:13 +0200 User-Agent: KMail/1.11.0 (FreeBSD/8.0-CURRENT; KDE/4.2.0; i386; ; ) References: <20090324212406.A42F4106567C@hub.freebsd.org> <200903302239.57635.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090401143625.U95588@sola.nimnet.asn.au> In-Reply-To: <20090401143625.U95588@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904011529.13480.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Ruben de Groot , Christoph Kukulies , Ian Smith Subject: Re: mod_php5 and apache22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2009 13:29:18 -0000 On Wednesday 01 April 2009 05:41:06 Ian Smith wrote: > On Mon, 30 Mar 2009, Mel Flynn wrote: > > On Wednesday 25 March 2009 05:36:26 Ian Smith wrote: > > > On Tue, 24 Mar 2009 16:46:16 +0100 Ruben de Groot wrote: > > > > On Tue, Mar 24, 2009 at 03:20:26PM +0100, Mel Flynn typed: > > > > > On Tuesday 24 March 2009 15:13:33 Christoph Kukulies wrote: > > > > > > I moved a site from some FreeBSD 5.2 or something (with apache2 > > > > > > and mod_php5 at that time, > > > > > > about 3 years old) to 7.1 (Beta though) and apache22. > > > > > > > > > > > > Now I don't find something that looks like mod_php5 in > > > > > > /usr/ports/www. > > > > > > > > > > > > Has that changed somehow? > > > > > > > > > > lang/php5 with APACHE_MODULE ticked in options dialog. > > > > > > > > The apache module compile is off by default since somewhere in 2006 > > > > and I keep forgetting that occasionally :( > > > > So people using pkg_add -r php5 will not get mod_php5. > > > > > > That's right, you haven't been able able to install mod_php5 from a > > > package for at least that long. I've never understood the rationale. > > > > APACHE_MODULE pulls in apache as dep, while CGI and CLI do not. There is > > not much difference in performance with the CGI version and mod_fcgid, > > the major difference with the module is the ease of site/directory > > specific configuration of php through php_value and php_flag directives. > > > > A slave port is easily created with one Makefile, as below. > > > > # New ports collection makefile for: php5-module > > # Date created: Jan 11 2009 > > # Whom: Mel Flynn > > > > # > > # $Coar: ports/local/php5-module/Makefile,v 1.2 2009/03/30 20:37:22 mel > > Exp $ # NOTE: we cannot use PKGNAMESUFFIX as that triggers extension > > build in # MASTERDIR/Makefile > > PORTNAME= php5-module > > MASTERDIR= ${.CURDIR}/../../lang/php5 > > CATEGORIES= local lang > > PKGORIGIN= local/php5-module > > PKGNAMEPREFIX= module- > > > > # Set some options, though the config dialog is still set. This build is > > # primarily for jails, where some php5 command line scripting is > > desired. # Jails can't use SUHOSIN > > WITHOUT_SUHOSIN=yes > > WITHOUT_CGI=yes > > WITHOUT_FASTCGI=yes > > WITHOUT_PATHINFO=yes > > WITH_APACHE=yes > > APACHE_PORT?=www/apache22 > > > > .include "${MASTERDIR}/Makefile" > > Mel, only two questions: > > 1) Does it need binding to apache22 specifically? No, I use apache22 and APACHE_PORT is set as ?=, so if set in env or /etc/make.conf will use your value. I just default to apache22. > 2) Can you please submit it? :) Not in this form, I use it locally and change at will which options I need. Provided here as example, that creating slave ports is not too hard ;) This is actually a pretty complicated slave port as far as slave ports go. I'll see what I can do, but it seems unlikely to me that this hasn't yet been requested on -ports and rejected. -- Mel