fastcgi-wrapper.pl excute error

i have tried to set up a LEMP server on debian5.The nginx works fine. Html files could be opened. But when i try to Deploy Perl and Conventional CGI Scripts as the libry told.I built '/usr/bin/fastcgi-wrapper.pl ' and '/etc/init.d/perl-fastcgi'. when i excute '/etc/init.d/perl-fastcgi start',it won't work.

errors are :

maoVPS:~# /etc/init.d/perl-fastcgi start
sudo: unable to resolve host maoVPS
/usr/bin/fastcgi-wrapper.pl: line 4: use: command not found
/usr/bin/fastcgi-wrapper.pl: line 5: use: command not found
/usr/bin/fastcgi-wrapper.pl: line 6: syntax error near unexpected token `('
/usr/bin/fastcgi-wrapper.pl: line 6: `use POSIX qw(setsid);'

help me ,pls

2 Replies

Dont use ngix/fast-cgi myself, but i can tell you those are shell, not perl errors. The script needs to either be invoked explicitly with perl (ie perl /path/to/script.pl) or make sure the shebang at the top of the script points to your perl bin, usually:

!/usr/bin/perl

I use: http://packages.debian.org/unstable/main/fcgiwrap

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct