How to install suPHP
By default apache runs as nobody (means anybody from inside same shared host can read your php files) and installing suphp makes php to run under the user account ownership. 777 permissions to folders can also be avoided.
NOTE: suPHP needs PHP installed as CGI not as apache module.
Download suPHP from suphp.org
Then
tar zxf suphp-current.tar.gz
./configure
make
make install
If you get error like
configure: error: APR is needed to build mod_suphp for Apache 2.x but was not found
APR => Apache Portable Runtime
To fix:
=========
yum install apr
./configure --with-apr=/usr/bin/apr-1-config
Once this is done you have to modify httpd.conf and
LoadModule suphp_module modules/su_php.so
Thats it and restart httpd