From owner-freebsd-questions@FreeBSD.ORG Tue Jan 10 14:09:47 2012 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 293F31065676 for ; Tue, 10 Jan 2012 14:09:47 +0000 (UTC) (envelope-from aimass@yabarana.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id EE0748FC0C for ; Tue, 10 Jan 2012 14:09:46 +0000 (UTC) Received: by iazz13 with SMTP id z13so1364715iaz.13 for ; Tue, 10 Jan 2012 06:09:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.193.229 with SMTP id hr5mr2536862igc.15.1326204586017; Tue, 10 Jan 2012 06:09:46 -0800 (PST) Sender: aimass@yabarana.com Received: by 10.231.77.5 with HTTP; Tue, 10 Jan 2012 06:09:45 -0800 (PST) In-Reply-To: <4F0C0E3D.7010906@nagual.nl> References: <4F0C0E3D.7010906@nagual.nl> Date: Tue, 10 Jan 2012 09:09:45 -0500 X-Google-Sender-Auth: CaVqS56yxyuvp_JOV0RDkVRz4bI Message-ID: From: Alejandro Imass To: Dick Hoogendijk Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD9 + PHP 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: Tue, 10 Jan 2012 14:09:47 -0000 On Tue, Jan 10, 2012 at 5:09 AM, Dick Hoogendijk wrote: > Op 9-1-2012 21:02, alexus schreef: >> >> there is no way to make it like that? so it has to be build via ports? >> >> On Mon, Jan 9, 2012 at 3:02 PM, Peter =A0wrote: >>>> >>>> I created a jail and within a jail I did >>>> >>>> pkg_add -r apache22 >>>> pkg_add -r php5 >>>> >>>> now I have apache and php, but whenever I'm trying to hit phpinfo.php, >>>> I see source code... I dont think php5 added inside of apache22 >>>> >>>> -- >>>> http://alexus.org/ >>> >>> I don't think the package has the apache module by default: >>> pkbsd:#pwd >>> /usr/ports/lang/php5 >>> pkbsd:#make config >>> [ ] APACHE =A0 =A0 Build Apache module >>> >>> That is unchecked. You'll have to select that and build the port. >>> ...Or you can use the CGI version which is included in the package: >>> [*] CGI =A0 =A0 =A0 =A0Build CGI version >>> > Yes there is no other way. Personally I find this unchecking rather weird= . > To me apache/PHP are a happily married couple. It makes building a webser= ver > on packages only *not* possible and that's stupid imo. > +1 I second you again here! I've read in some PHP forums to stay away from Apache and mod_php and to use FCGI instead. Maybe this is a trend in the PHP community, but I couldn't care less because IMO it hurts FBSD in the long run, not to have the module built by default. --=20 Alejandro Imass