How to install suPHP Setup on CentOS 6.x

Add RPM Forge repository. 32-bit: rpm -ivH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm 64-bit: rpm -ivH http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm Disable RPMForge by default (if you leave things like this enabled, it will break your system). # sed -i ‘s/enabled = 1/enabled = 0/g’ /etc/yum.repos.d/rpmforge.repo Install mod_suphp via yum: Install suPHP # yum install mod_suphp -y –enablerepo=rpmforge Edit  PHP Handler: sed -i ‘s/x-httpd-php=php:/usr/bin/php/x-httpd-php=”php:/usr/bin/php-cgi”/g’ ...

How to install multiple PHP versions on linux

You can install all versions of php either from source or install the default version using yum installer. My server has php5.3 already installed and I am going to install PHP5.6 from source. Prerequisites Install suphp and configure mkdir -p /usr/local/php56 mkdir -p /etc/php56 mkdir -p /etc/php56/php.d Download php5.6 wget http://de1.php.net/distributions/php-5.6.19.tar.gz Compile php ./configure –prefix=/usr/local/php56 ...