From owner-freebsd-questions@FreeBSD.ORG Sat Jun 9 22:00:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59BAC16A400 for ; Sat, 9 Jun 2007 22:00:57 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id C61A513C483 for ; Sat, 9 Jun 2007 22:00:56 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (pollux.dfwlp.com [192.168.125.61]) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l59M0aUB009360; Sat, 9 Jun 2007 17:00:36 -0500 (CDT) (envelope-from freebsd@dfwlp.com) Received: (from www@localhost) by pollux.dfwlp.com (8.13.8/8.13.8/Submit) id l59M0auJ009359; Sat, 9 Jun 2007 17:00:36 -0500 (CDT) (envelope-from freebsd@dfwlp.com) X-Authentication-Warning: pollux.dfwlp.com: www set sender to freebsd@dfwlp.com using -f Received: from 192.168.125.81 (SquirrelMail authenticated user jhorne) by webmail.dfwlp.org with HTTP; Sat, 9 Jun 2007 17:00:36 -0500 (CDT) Message-ID: <49217.192.168.125.81.1181426436.squirrel@webmail.dfwlp.org> In-Reply-To: <466B17E6.9000906@vindaloo.com> References: <466B17E6.9000906@vindaloo.com> Date: Sat, 9 Jun 2007 17:00:36 -0500 (CDT) From: "Jonathan Horne" To: "Christopher Hilton" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pollux.dfwlp.com Cc: bob@a1poweruser.com, User Questions , freebsd-ports@freebsd.org Subject: Re: Php5 port and Apache Module 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: Sat, 09 Jun 2007 22:00:57 -0000 > Bob wrote: >> The php4 & php5 port apache module used to be default before FBSD 6.0. >> Many people before you on this list have wanted the php4/5 apache module >> turned back on as default but so far the port maintainer has not done >> anything >> in any way of justifying removing the apache module from the default setting >> or re-enable it as the default. >> >> This has forced all php4/5 users who want to use php in apache to compile it >> manually with the apache module option selected during the make install of >> the port. >> When it was part of the default the php4/5 package was so quick to install >> and ready to work with apache without any special handling. >> >> Hope you have better luck finding the justification for it being removed >> from the default. >> >> > > I've been operating under the assumption that: > > There is some configuration you can do in > /usr/local/etc/apache*/httpd.conf to get apache to use the CGI version > of php; > > That this can be done without requiring a shebang (#! ...) line at the > beginning of every php script; > > And that using php as a CGI script offers better performance than > running it as an apache module. > > Looking on the internet though I cannot seem to find a set of > instructions for configuring php-cgi in apache2. And once I do find the > configuration I'll have to have a shebang at the start of every php > module. Further all the performance comparisons that I've seen seem show > that the performance of php as a FastCGI script and as an Apache Module > are about equal. > > I don't want to get into a war. I'm still assuming that the port > maintainer knows something that I don't. If I cannot get this running > soon I guess that I will go back to mod_php5 and revisit this later. > > -- Chris > > -- > __o "All I was doing was trying to get home from work." > _`\<,_ -Rosa Parks > ___(*)/_(*)___________________________________________________________ > Christopher Sean Hilton > pgp key: D0957A2D/f5 30 0a e1 55 76 9b 1f 47 0b 07 e9 75 0e 14 > _______________________________________________ seems like it was removed from the default config of lang/php5 for security reasons. many people who do build php5 do not need the apache module, so no sense building it if its not needed. cd /usr/ports/lang/php5 make config (edit your choices) make deinstall make reinstall its just one of those things that you learn to live with after a while. cheers, -- Jonathan Horne freebsd@dfwlp.com http://dfwlpiki.dfwlp.org