From owner-freebsd-questions@FreeBSD.ORG Wed Jun 29 16:26:20 2011 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 E37FA106566B for ; Wed, 29 Jun 2011 16:26:20 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 7CDEF8FC21 for ; Wed, 29 Jun 2011 16:26:20 +0000 (UTC) Received: by wwg11 with SMTP id 11so72655wwg.1 for ; Wed, 29 Jun 2011 09:26:17 -0700 (PDT) Received: by 10.227.10.145 with SMTP id p17mr908129wbp.44.1309364776918; Wed, 29 Jun 2011 09:26:16 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id ei4sm1015746wbb.60.2011.06.29.09.26.14 (version=SSLv3 cipher=OTHER); Wed, 29 Jun 2011 09:26:15 -0700 (PDT) Message-ID: <4E0B5225.1090708@my.gd> Date: Wed, 29 Jun 2011 18:26:13 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Grant Peel References: <4E0AE16B.8080107@my.gd> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Apache 2.2 + PHP5 + SuExec + (fast-cgi or mod_fcgid) 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, 29 Jun 2011 16:26:21 -0000 I would guess so, however I have no experience with fcgi on apache, I only run it with nginx and lighttpd servers. On 6/29/11 6:04 PM, Grant Peel wrote: > Should I be using suPHP then instead of the formentioned suexec/mod_fcgid ? > > -Grant > > -----Original Message----- From: Damien Fleuriot > Sent: Wednesday, June 29, 2011 4:25 AM > To: freebsd-questions@freebsd.org > Subject: Re: Apache 2.2 + PHP5 + SuExec + (fast-cgi or mod_fcgid) > > *fast* cgi , which as the name implies, is erm, fast ;) > > See, only apache has PHP as a module. > > Other web servers such as nginx or lighttpd use a fastcgi process. > > This has several advantages: > > - you'll no longer see apache exit with (quote) a "signal 11, core > dumped" because of lousy php code / errors. > - you can use different php config files for different vhosts > - php fcgi is faster > - you can use process accounting to check the processing time consumed > individually by your web server , and your PHP processes > - you will slightly reduce the size of your apache processes, since > they'll no longer load mod_php > > > > On 6/29/11 8:31 AM, Van Der Meulen, Mark wrote: >> I am under the impression that suPHP is the better/more secure way of >> running PHP with Apache. In addition you don't need suEXEC to do so. Am >> I incorrect in these assumptions? What are the benefits of running PHP >> as a CGI(if you don't mind me asking) ? >> >> Mark >> >> -----Original Message----- >> From: owner-freebsd-questions@freebsd.org >> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Grant Peel >> Sent: Wednesday, 29 June 2011 2:13 PM >> To: freebsd-questions@freebsd.org >> Subject: Apache 2.2 + PHP5 + SuExec + (fast-cgi or mod_fcgid) >> >> Hello Everyone, >> >> I am researching how to run PHP as CGI with Apache's Suexec module. Up >> to >> this point we have been using PHP as an Apache mod, but are looking to >> move >> to the more secure solution. >> >> I am not sure this is exactly the right list top post to so if anyone >> knows >> a better one please let me know :-) >> >> I am using FreeBSD (8) as the OS, Apache 2.2, PHP5 with several >> extensions >> installed. >> >> What I am looking for is to have PHP run as a CGI wrapped with suexec, >> and >> to have the fastcgi module, or, mod_fcgid. I have never set this up >> before >> so if anyone knows of a usefull 'how-to' that would be great. I have >> been >> reading through >> http://www.cyberciti.biz/faq/freebsd-apache22-fastcgi-php-configuration/ >> and >> it seems to have some good hints. >> >> Of course, once we get this all figured out, I will post a complete step >> by >> set here. >> >> TIA, >> >> -Grant >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> ******************************************************************************* >> >> Travelex - www.travelex.com >> >> Travelex Outsourcing Pty Limited [Currency Select businesss] is a >> limited company registered in Australia with company number: 127 747 586. >> >> Information in this email including any attachment ('email') is >> confidential, >> may be privileged and is intended solely for the addressee. Unauthorised >> recipients are requested to preserve the confidentiality of this >> email, advise >> the sender immediately of any error in transmission, and then delete >> the email >> from the recipient's mailbox without making copies. Any disclosure, >> copying, >> distribution or action taken, or omitted to be taken, in reliance upon >> the >> contents of this email by unauthorised recipients is prohibited and >> may be >> unlawful. >> >> Please note that no contracts or commitments may be concluded on >> behalf of Travelex Outsourcing Pty Limited [Currency Select businesss] >> or its groups of companies ('Travelex') by means of email, and no >> statement or representation made in this email is binding on >> behalf of Travelex. >> >> DISCLAIMER: Whilst this message has been scanned for viruses, Travelex >> disclaims any responsibility or liability for viruses contained >> therein. It is >> therefore recommended that all emails should be scanned for viruses. >> ******************************************************************************* >> >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"