lighttpd forum lighty > fastcgi setup for perl

Posted by Skunkwerk Werk
on 06.05.2008 01:23
I've been able to get perl working, but only through mod_cgi, not 
fastcgi.  Why doesn't the following work (adapted from the python fcgi 
sample code):

fastcgi.server += ( ".pl" =>((
"bin-path" => "/usr/bin/perl",
"socket"   => "/tmp/perl-fastcgi.socket")))

fastcgi.server += ( ".cgi" =>((
"bin-path" => "/usr/bin/perl",
"socket"   => "/tmp/perl-fastcgi.socket")))

what's the proper way to use fastcgi with perl, without changing any 
header files, etc.?

thanks
Posted by Olaf van der Spek
on 06.05.2008 07:04
Skunkwerk Werk wrote:
> I've been able to get perl working, but only through mod_cgi, not 
> fastcgi.  Why doesn't the following work (adapted from the python fcgi 
> sample code):

What *does* it do?
Posted by Guest (Guest)
on 06.05.2008 15:48
Olaf van der Spek wrote:
> Skunkwerk Werk wrote:
>> I've been able to get perl working, but only through mod_cgi, not 
>> fastcgi.  Why doesn't the following work (adapted from the python fcgi 
>> sample code):
> 
> What *does* it do?

well, it doesn't work for starters.  Fastcgi complains about being 
unable to start /usr/bin/perl.  where's the documentation on getting 
perl working with mod_fastcgi?

thanks
Posted by Olaf van der Spek
on 06.05.2008 16:32
Guest wrote:
> well, it doesn't work for starters.  Fastcgi complains about being 
> unable to start /usr/bin/perl.  

What is the error message?

> where's the documentation on getting 
> perl working with mod_fastcgi?

http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#perl