LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > ERROR: missing environment variable 'SCRIPT_FILENAME'!

Reply
 
Thread Tools Display Modes
  #1  
Old 01-07-2010, 04:27 PM
dougconran dougconran is offline
Member
 
Join Date: Jan 2010
Posts: 15
Default ERROR: missing environment variable 'SCRIPT_FILENAME'!

I'm trying to use Perl with Fast CGI but get the above error.

I've set up a Context pointing to my Perl scripts in /cgi-bin/ and everything works fine when the Type is CGI.

I've set up an External app pointing to lsperl.fpl, and linked that to the cgi-bin context (re-configured for Fast CGI). I've also confirmed that I have the FCGI module in my Perl path but, as soon as I try to run the Perl script I get the error.

The log files don't report any problems.

Can anyone suggest what I'm doing wrong?

Many thinaks

Doug
Reply With Quote
  #2  
Old 01-07-2010, 10:34 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Have you followed this
http://www.litespeedtech.com/how-tos.html#qa_perld
Reply With Quote
  #3  
Old 01-08-2010, 02:08 AM
dougconran dougconran is offline
Member
 
Join Date: Jan 2010
Posts: 15
Thanks for your quick reply.

Yes I have (with the one difference being that I installed FCGI.pm after installing Litespeed).

I don't have PHP running but do have Ruby on Rails configured (from following the RoR installation guide) which works fine.

I've also set FCGI_PERL_MAX_REQ=1000 in the Perl External App Environment variables.

I'm running v 4.0.11 of Litespeed and perl 5.10.1

TIA

Doug
Reply With Quote
  #4  
Old 01-08-2010, 10:54 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Our team member will try the similar setup see if we can reproduce it or not.
Reply With Quote
  #5  
Old 01-08-2010, 11:00 AM
dougconran dougconran is offline
Member
 
Join Date: Jan 2010
Posts: 15
Thanks

Doug
Reply With Quote
  #6  
Old 01-09-2010, 03:32 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,220
can you compare your perl External App settings with our demo page:
http://www.litespeedtech.com/litespeed-live-demos.html

go to the demo admin console,
Virtual Hosts -> demo -> External App ->lsperld

any difference with yours?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:21 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.