php safe_mode=off how to secure server?

I have got suEXEC in /usr/sbin/suexec - i hear it will be good, when i have suexec should i install suphp?
I do not have load this module in httpd.conf?
How to enable it?
How to set php4 as cgi?
 
suphp runs the files as the user.group of the file owner. In addition files do not have to be readable by world. So you have inherently more security than with mod_php and with UNsafe_mode

To setup suphp search the forums.
 
To install php as cgi should I delete line
LoadModule something_php4.so

and do this that (i httpd.conf):
AddType application/x-httpd-php .php
ScriptAlias /php/ "/usr/lib/php/"
Action application/x-httpd-php "/php/php"
?? Coz i don`t undesrtand how to install php as cgi ;(
 
Back
Top