I want tell you something about secondary PHP.
Kloxo-MR using suphp for secondary php. Suphp have 2 importance conf files (/etc/suphp.conf and /etc/httpd/conf.d/suphp52.conf) where 2 of this file copied from /home/apache/etc/suphp.conf and /home/apache/etc/conf.d/suphp52.conf.
This is content of /etc/suphp.conf:
[global]
logfile=/var/log/httpd/suphp_log
loglevel=info
webserver_user=apache
docroot=/
env_path=/bin:/usr/bin
umask=0022
min_uid=500
min_gid=48
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false
;Send minor error messages to browser
errors_to_browser=false
[handlers]
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php-cgi"
; x-httpd-php52="php:/usr/local/lxlabs/ext/php/bin/php_cgi"
x-httpd-php52="php:/home/apache/etc/suphp/phpcgi.sh"
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
;;; MR -- for using php52 just enough add 'AddHandler x-httpd-php52 .php' on .htaccess.
;;; it's make possible running 'dual php' on server!
and content of etc/httpd/conf.d/suphp52.conf:
### MR -- read /usr/local/lxlabs/kloxo/file/apache/conf.d/suphp.conf.original for full description ###
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine On
#AddHandler x-httpd-php .php
#AddHandler x-httpd-php .php .php4 .php3 .phtml
suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php52
DirectoryIndex index.php
You can add additional setting (because want suphp not use 'standard' x-httpd-php52) like:
[handlers]
...
;Handler for php-scripts
x-httpd-php="php:/usr/bin/php-cgi"
; x-httpd-php52="php:/usr/local/lxlabs/ext/php/bin/php_cgi"
x-httpd-php52="php:/home/apache/etc/suphp/phpcgi.sh"
x-httpd-php52s="php:/home/httpd/tester.com/php5.fcgi"
...
and then inside .htaccess you enable activate 'AddHandler x-httpd-php52s .php' instead 'AddHandler x-httpd-php52 .php'