Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Aug 17, 2010 4:58 am 
Offline

Joined: Tue Aug 17, 2010 4:48 am
Posts: 1
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 :
Code:
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


Top
   
 Post subject:
PostPosted: Tue Aug 17, 2010 9:11 am 
Offline
Senior Member

Joined: Thu Nov 25, 2004 10:05 am
Posts: 52
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


Top
   
 Post subject:
PostPosted: Wed Aug 18, 2010 9:18 pm 
Offline
Senior Member

Joined: Sun Feb 21, 2010 5:12 pm
Posts: 64
I use: http://packages.debian.org/unstable/main/fcgiwrap


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group