1 package PLP::Backend::FastCGI;
7 use base 'PLP::Backend::CGI';
13 my $request = FCGI::Request();
14 while ($request->Accept() >= 0) {
15 $PLP::use_cache = !defined $ENV{PLP_CACHE} || $ENV{PLP_CACHE}; # before it's clean()ed
16 delete $ENV{PATH_TRANSLATED};
25 PLP::Backend::FastCGI - FastCGI interface for PLP
31 Edit the configuration file (usually F</etc/lighttpd/lighttpd.conf>)
32 to enable I<mod_fastcgi> (add/outcomment in server.modules), and add:
36 "bin-path" => "/usr/bin/perl -MPLP::Backend::FastCGI",
37 "socket" => "/tmp/fcgi-plp.socket",
43 You'll need a dispatch script (F<plp.fcgi> is included with PLP).
44 Example F</foo/bar/plp.fcgi>:
47 use PLP::Backend::FastCGI;
49 Then enable either I<mod_fastcgi> or I<mod_fcgid>, and setup F<httpd.conf>
50 (often just create a F</etc/apache2/conf.d/plp>) with:
52 <IfModule mod_fastcgi.c>
53 AddHandler fastcgi-script plp
54 FastCgiWrapper /foo/bar/plp.fcgi
57 <IfModule mod_fcgid.c>
58 AddHandler fcgid-script plp
59 FCGIWrapper /foo/bar/plp.fcgi .plp
64 Mischa POSLAWSKY <perl@shiar.org>
68 L<PLP>, L<PLP::Backend::CGI>, L<FCGI>