nginx + .cgi/perl scripts...

Roger Hoover roger.hoover at gmail.com
Wed Jul 2 01:33:50 MSD 2008


To implement real FastCGI servers in Perl, you can use the CGI::Fast module.

http://search.cpan.org/~lds/CGI.pm-3.38/CGI/Fast.pm

For process management, supervisord (http://supervisord.org/) can manage any
kind of FastCGI processes.  The FastCGI support has not been officially
released yet but if you check out the trunk, it will work just fine.  The
config would look something like this.

[fcgi-program:foo]
        socket=unix:///tmp/%(program_name)s.sock //(or tcp://<host>:<port
number>)
        process_name = %(program_name)s_%(process_num)s
        command = /bin/foo.fcgi
        numprocs = 5

Roger

On Tue, Jul 1, 2008 at 2:06 PM, mike <mike503 at gmail.com> wrote:

> Actually, it will process one request for each process and die right
> after...
>
>
>
> FastCGI: manager (pid 11232): server (pid 11233) exited with status 2304
> FastCGI: manager (pid 11232): sending TERM to PIDs, 11237 11235 11236 11234
> FastCGI: manager (pid 11232): server (pid 11235) exited with status 0
> FastCGI: manager (pid 11232): server (pid 11236) exited with status 0
> FastCGI: manager (pid 11232): server (pid 11237) exited with status 0
> FastCGI: manager (pid 11232): server (pid 11234) exited with status 0
> FastCGI: manager (pid 11232): dying: calling process has died
>
> On 7/1/08, mike <mike503 at gmail.com> wrote:
> > This seems a bit overkill:
> > http://wiki.codemongers.com/NginxSimpleCGI
> >
> > Not to mention it's not persistent. Anyone have any better tools to
> > keep Perl-capable fastcgi engines running?
> >
> > I have it supposedly running at the moment (not ideal, but says it's
> > running) ...
> >
> > Is there anything like php-fpm out there but for perl? :)
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080701/d5c8cd56/attachment.html>


More information about the nginx mailing list