PHP question
Chuck Swiger
cswiger at mac.com
Wed Jan 14 13:14:25 PST 2009
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
More information about the freebsd-ports
mailing list