From owner-freebsd-ports@FreeBSD.ORG Wed Jan 14 21:14:24 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7BB1106564A for ; Wed, 14 Jan 2009 21:14:24 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0A08FC16 for ; Wed, 14 Jan 2009 21:14:24 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay11.apple.com (relay11.apple.com [17.128.113.48]) by mail-out3.apple.com (Postfix) with ESMTP id 797274C6DFAE; Wed, 14 Jan 2009 13:14:24 -0800 (PST) Received: from relay11.apple.com (unknown [127.0.0.1]) by relay11.apple.com (Symantec Brightmail Gateway) with ESMTP id 6519928087; Wed, 14 Jan 2009 13:14:24 -0800 (PST) X-AuditID: 11807130-a708ebb000000fcd-12-496e55b0d221 Received: from cswiger1.apple.com (cswiger1.apple.com [17.227.140.124]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay11.apple.com (Apple SCV relay) with ESMTP id 4755328097; Wed, 14 Jan 2009 13:14:24 -0800 (PST) From: Chuck Swiger To: Albert Thiel In-Reply-To: X-Priority: 3 (Normal) References: Message-Id: <222F4D55-C092-46E7-B3D4-9125AC9072FF@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Wed, 14 Jan 2009 13:14:24 -0800 X-Mailer: Apple Mail (2.930.3) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-ports@freebsd.org Subject: Re: PHP question X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2009 21:14:25 -0000 On Jan 14, 2009, at 12:26 PM, Albert Thiel wrote: > I am trying to figure out how to get a working Apache 2.x server > with PHP in a safe configuration (or > as safe as possible based upon all the vulns). I do not need a > database. > > What version and options is my best bet. I have tried on my own but > losing it. Nothing I have tried > works. Make sure your ports tree is up-to-date, and then: cd /usr/ports/www/apache20 # or apache22 if you prefer make install /usr/ports/lang/php5 make config # enable "build apache module" and "Suhosin protection" at the very least make install cd /usr/ports/lang/php5-extensions make config # select any additional PHP modules and extensions you want make install Look at "less /usr/ports/lang/php5/pkg-message.mod" and other documentation from http://www.php.net. Regards, -- -Chuck