Standard CGI under nginx

Grzegorz Nosek grzegorz.nosek at gmail.com
Wed Oct 15 14:56:38 MSD 2008


On Tue, Oct 14, 2008 at 02:33:42PM -0500, Francisco Valladolid wrote:
> Hi folks
> 
> I see the example using normal CGI under nginx, via wrapper, whenever
> the cgi-wrapper.pl fail to start
> 
> ficovh:~> /usr/pkg/bin/cgiwrap-fcgi.pl&
> [1] 12390
> 
> ficovh:~> Can't locate syscall.ph in @INC (did you run h2ph?) (@INC
> contains: /usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd-thread-multi
> /usr/pkg/lib/perl5/site_perl/5.8.0 /usr/pkg/lib/perl5/site_perl
> /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi
> /usr/pkg/lib/perl5/vendor_perl/5.8.0 /usr/pkg/lib/perl5/vendor_perl
> /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi
> /usr/pkg/lib/perl5/5.8.0 .) at /usr/pkg/bin/cgiwrap-fcgi.pl line 9.

That's one of the reasons that script is positively ugly.

> While I don't know a perl hacker, I need run simple CGI scripts from nginx.

<shameless and tireless plug... again>
Have a look at http://github.com/gnosek/fcgiwrap/tree/master
(the home page is in the making)

That's a C application that does roughly the same thing as the script.
You need headers and libraries for libfcgi and a process spawner, like
spawn-fcgi from lighttpd. Works fine for me.

If you need any assistance, feel free to mail me.

Best regards,
 Grzegorz Nosek





More information about the nginx mailing list