/etc/portage/package.use
==
=dev-lang/php-4* cgi force-cgi-redirect
=dev-lang/php-5* cgi force-cgi-redirect
==
USE=”force-cgi-redirect” emerge ‘=dev-lang/php-4*’ ‘=dev-lang/php-5*’
/etc/conf.d/apache2
==
APACHE2_OPTS=”-D SUPHP”
==
echo “>=www-apache/mod_suphp-0.6* ~x86″ >> /etc/portage/package.keywords
USE=”mode-force” emerge mod_suphp
/etc/suphp.conf
==
[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/lib/php5/bin/php-cgi
x-httpd-php5=php:/usr/lib/php5/bin/php-cgi
x-httpd-php4=php:/usr/lib/php4/bin/php-cgi
x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi
==