To run separate apache and php processes on centos (at least) withouthaving to compile and install separate versions for every instancethis should work:Install apache and php with yum.This will give you (for the first instance):/etc/httpd/*, /etc/sysconfig/httpd, /etc/init.d/httpd, /etc/php.iniand /etc/php.d/*.Copy all this stuff to:/etc/httpd2/*, /etc/sysconfig/httpd2, /etc/init.d/httpd2, /etc/php2.iniand /etc/php2.d/*.Then:Edit the apache config files in /etc/httpd2/* to reflect the newports you want to have this apache listen on (don't forget ssl.confunder conf.d) and any other differing settings, like log filedestinations and virtualhosts.Edit the php2.ini for any specific settings you want the other php instance to have.To have a completely separate php in this new apache instance with its ownmodules included, edit /etc/sysconfig/httpd2 and add the following:PHPRC=/etc/php2.iniexport PHPRCPHP_INI_SCAN_DIR=/etc/php2.dexport PHP_INI_SCAN_DIRThis will set the environment variables for the second apache/phpinstance before it is started.Then edit /etc/init.d/httpd2 and change all references to httpd(like lockfile, pidfile and sysconfig) to httpd2. Don't touch theexecutable name, though :)And change this:LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd $OPTIONSto this:LANG=$HTTPD_LANG daemon --pidfile=${pidfile} $httpd -f /etc/httpd2/conf/httpd.conf $OPTIONS.. so this apache can find its own configuration file.Then, if necessary 'chkconfig --add /etc/init.d/httpd2' to have itin startup and you should have two apache instances with two separatephp modules with their own dedicated settings.