Security Issues on own PHP compilation

What is the best way to compile PHP and set up Apache for maximum security on Dreamhost

The current DreamHost default setup of PHP5 and Apache should provide sufficient security. PHP4 is less secure.

Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]

I realised that some of my temporary files were being stored on the server’s public folder - I prefer them to be stored under my own web directory.