From owner-freebsd-questions@FreeBSD.ORG Wed Jun 29 07:01:01 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 C92F21065674 for ; Wed, 29 Jun 2011 07:01:01 +0000 (UTC) (envelope-from Mark.VanDerMeulen@travelex.com.au) Received: from mail01.travelex.com.au (mail01.travelex.com.au [203.44.27.248]) by mx1.freebsd.org (Postfix) with ESMTP id 3A7B38FC14 for ; Wed, 29 Jun 2011 07:01:00 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.65,442,1304258400"; d="scan'208";a="33177899" X-IP-AUO-DISC: True Received: from unknown (HELO au-syd-ex-001.apac.travelex.net) ([172.22.29.6]) by mail01.travelex.com.au with ESMTP; 29 Jun 2011 16:31:19 +1000 Received: from AU-SYD-EX-VS1.apac.travelex.net ([172.22.29.21]) by au-syd-ex-001.apac.travelex.net with Microsoft SMTPSVC(6.0.3790.4675); Wed, 29 Jun 2011 16:31:19 +1000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 29 Jun 2011 16:31:15 +1000 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Apache 2.2 + PHP5 + SuExec + (fast-cgi or mod_fcgid) Thread-Index: Acw2FKn1ZhpHysw1Qf2/GuGc1tOmsQAES69A References: From: "Van Der Meulen, Mark" To: "Grant Peel" , X-OriginalArrivalTime: 29 Jun 2011 06:31:19.0346 (UTC) FILETIME=[27EDE120:01CC3626] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: 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 07:01:02 -0000 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=20 _______________________________________________ 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 c= ompany registered in Australia with company number: 127 747 586. Information in this email including any attachment ('email') is confidentia= l,=20 may be privileged and is intended solely for the addressee. Unauthorised=20 recipients are requested to preserve the confidentiality of this email, adv= ise=20 the sender immediately of any error in transmission, and then delete the em= ail from the recipient's mailbox without making copies. Any disclosure, copying= ,=20 distribution or action taken, or omitted to be taken, in reliance upon the=20 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 representa= tion made in this email is binding on=20 behalf of Travelex. DISCLAIMER: Whilst this message has been scanned for viruses, Travelex=20 disclaims any responsibility or liability for viruses contained therein. It= is=20 therefore recommended that all emails should be scanned for viruses. ***************************************************************************= ****