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
Similar Posts:
- Install Apache Mod_Substitute
- How to unzip ZIP files with PHP
- Enabling ModRewrite in XAMPP Apache
- Install ModSecurity for Redhat/Centos
- Apache Error Log File Path in Cpanel
- Easy Install FFmpeg in Linux
- Install Snort Intrusion Detection & Prevention System for Linux
- How to Fix: PHPMyAdmin 403 Forbidden Error
- Install LAMP Server for Centos/RHEL
- Automatic Face Detection in Photos with PHP


November 11, 2008
anybody here know of a good site to find more info on configure php 5? I’ve got this site bookmarked and im gonna keep checking it out, but i still would like to find a site that covers configure php 5 a little more thoroughly..thanks
November 15, 2008
its easy! just do “yum install php” and it will configure php5 with apache.