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
- Fixing WordPress custom permalinks 404 error
- Enabling ModRewrite in XAMPP Apache
- Install ModSecurity for Redhat/Centos
- Apache Error Log File Path in Cpanel
- Easy Install FFmpeg in Linux
- How to Fix: PHPMyAdmin 403 Forbidden Error
- Install Snort Intrusion Detection & Prevention System for Linux
- Install LAMP Server for Centos/RHEL


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.
November 17, 2010
Hi,
I’m getting the following errors
mod_suphp-0.7.1-1.el5.rf.i386 from dag has depsolving problems
–> Missing Dependency: httpd >= 2.0 is needed by package mod_suphp-0.7.1-1.el5.rf.i386 (dag)
mod_suphp-0.7.1-1.el5.rf.i386 from dag has depsolving problems
–> Missing Dependency: php is needed by package mod_suphp-0.7.1-1.el5.rf.i386 (dag)
Error: Missing Dependency: httpd >= 2.0 is needed by package mod_suphp-0.7.1-1.el5.rf.i386 (dag)
Error: Missing Dependency: php is needed by package mod_suphp-0.7.1-1.el5.rf.i386 (dag)
I have the latest Apache 2.2 and PHP5 on CentOS 5.5 and WHM.
I’m new to linux I think it has to do with the repos?