I am using Ubuntu 8.10. I'm have setup php5 under lighttpd. But I'm not very familiar with apache.
I want to use fastcgi with my virtual hosts.
With lighttpd, you enable the fastcgi module
# lighty-enable-mod fastcgi
And then you configure /etc/lighttpd/conf-availab
# cat /etc/lighttpd/conf-availab
server.modules += ( "mod_fastcgi" )
## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server = ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi -c /etc/php5/cgi/php.ini",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"idle-timeout" => 20,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
))
)
I did find two articles that look helpful for configuring apache2-mpm-worker+fastcgi
1.) Apache2/workerMPM/FastCGI/
http://www.digitalnerds.ne
2.) Installing Apache2 and PHP5 using mod_fcgid
http://ivan.gudangbaca.com
Question: On Apache2, using the instructions in http://www.digitalnerds.ne
do I still need to create a script of some sort and set PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS ?
Main Topics
Browse All Topics





by: fmarzoccaPosted on 2009-01-09 at 07:30:52ID: 23336427
which distro are you running?