Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2009 13:14:24 -0800
From:      Chuck Swiger <cswiger@mac.com>
To:        Albert Thiel <athiel@yourdatacenter.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: PHP question
Message-ID:  <222F4D55-C092-46E7-B3D4-9125AC9072FF@mac.com>
In-Reply-To: <bea64a2b5b724861a7376bce8307b0d2.athiel@yourdatacenter.com>
References:  <bea64a2b5b724861a7376bce8307b0d2.athiel@yourdatacenter.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?222F4D55-C092-46E7-B3D4-9125AC9072FF>