From owner-freebsd-questions@FreeBSD.ORG Wed Aug 3 09:32:36 2005 Return-Path: X-Original-To: questions@freebsd.org 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 40BB116A41F for ; Wed, 3 Aug 2005 09:32:36 +0000 (GMT) (envelope-from info@orangexl.com) Received: from mail.orangexl.nl (mail.orangexl.nl [194.109.66.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 942E343D48 for ; Wed, 3 Aug 2005 09:32:35 +0000 (GMT) (envelope-from info@orangexl.com) Received: from OrangeXL (cp262152-a.roose1.nb.home.nl [84.26.101.188]) (AUTH: LOGIN postmaster@orangexl.com) by mail.orangexl.nl with esmtp; Wed, 03 Aug 2005 11:32:29 +0200 From: "Sander Holthaus - Orange XL" To: "'David Banning'" Date: Wed, 3 Aug 2005 11:32:35 +0200 Organization: Orange XL Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 In-Reply-To: <20050803004141.GA3788@skytracker.ca> Thread-Index: AcWXxCkrhAsEU02VQ9+qtsU09DMckgASGl2A Cc: questions@freebsd.org Subject: RE: running lighttpd with FastCGI 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, 03 Aug 2005 09:32:36 -0000 owner-freebsd-questions@freebsd.org wrote: > I am attempting to run lighttpd with FastCGI. I understand I > must first get FastCGI support into php4. Can anyone point me > in the right direction? I have tried all types of switches while > compiling php4. > > I have been looking for any switches I can set by scanning > through the Makefile of php4 in the ports. PHP has a meta-port for cgi: www/php4-cgi. Use that to start. There are a few options you have to define, in the Makefile of lang/php4, you will find: .if ${PHP_SAPI} == "cgi" OPTIONS= REDIRECT "Enable force-cgi-redirect support" off \ DISCARD "Enable discard-path support" off \ FASTCGI "Enable fastcgi support" off \ PATHINFO "Enable path-info-check support" on .endif And .if ${PHP_SAPI} == "cgi" .if defined(WITH_REDIRECT) CONFIGURE_ARGS+=--enable-force-cgi-redirect .endif .if defined(WITH_DISCARD) CONFIGURE_ARGS+=--enable-discard-path .endif .if defined(WITH_FASTCGI) CONFIGURE_ARGS+=--enable-fastcgi .endif .if defined(WITHOUT_PATHINFO) CONFIGURE_ARGS+=--disable-path-info-check .endif .endif You want WITH_REDIRECT, as well as WITH_DISCARD and WITH_FASTCGI. (Forgot what to do with PATHINFO). Kind Regards, Sander Holthaus