rendered paste bodydev:~# cat /etc/apache2/mods-available/fastcgi.conf
<IfModule mod_fastcgi.c>
AddHandler fastcgi-script .fcgi
#FastCgiWrapper /usr/lib/apache2/suexec2
FastCgiIpcDir /var/lib/apache2/fastcgi
# Some generally useful settings for FastCGI
FastCgiConfig -flush
FastCgiConfig -idle-timeout 300
FastCgiConfig -pass-header Authorization
FastCgiConfig -pass-header HTTP_AUTHORIZATION
# Run PHP via FastCgi
AddHandler php-script php php3 php4
Action php-script /cgi-bin/php4-wrapper
# Register /cgi-bin/php as a FastCgi script
<LocationMatch ^/cgi-bin/php$>
Options +ExecCgi
SetHandler fastcgi-script
</LocationMatch>
</IfModule>
dev:~# cat /usr/lib/cgi-bin/php4
php4 php4-wrapper
dev:~# cat /usr/lib/cgi-bin/php4-wrapper
#!/bin/sh
PHP_FCGI_CHILDREN=50
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
export PHP_FCGI_CHILDREN
exec /usr/bin/php4-cg