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

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > Perl (CGI Scripts)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2007, 11:20 AM
bbennett bbennett is offline
Member
 
Join Date: Aug 2007
Posts: 37
Default Perl (CGI Scripts)

Hello,

I got everything working smoothly so far. I’m using litespeed as a replacement to apache on cpanel servers.

My last issue seems to be getting perl cgi scripts to work. I found the following page and have installed the FCGI. (perl -MCPAN -e 'install FCGI')

I’m just confused at to where in the web admin console I add the mappings to make this work.

http://www.litespeedtech.com/support...erl_equivalent
Reply With Quote
  #2  
Old 08-10-2007, 01:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can run perl script either as plain CGI script in suEXEC mode, or run it within the our Perl FCGI container as the user/group of the web server run as, "nobody/nobody".
To run perl CGI script as plain CGI, just add a server level script handler for "pl", using CGI as the handler.

To use the perl container, you need to add a FCGI external application similar to the lsphp external application, then use this external application as the handler for "pl"script.
Reply With Quote
  #3  
Old 08-10-2007, 01:59 PM
bbennett bbennett is offline
Member
 
Join Date: Aug 2007
Posts: 37
I add these under >server then under the >external app or >script handler sub sections?
Reply With Quote
  #4  
Old 08-10-2007, 02:03 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
under server->external app for the FCGI Application, then server->script handler section for the script handler of "pl".
Reply With Quote
  #5  
Old 08-10-2007, 02:04 PM
bbennett bbennett is offline
Member
 
Join Date: Aug 2007
Posts: 37
Great, that clears it up for me, just wasnt sure which section to add it.
Reply With Quote
  #6  
Old 08-10-2007, 02:09 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
A sample perld configuration:
Code:
    <extProcessor>
      <type>fcgi</type>
      <name>lsperld</name>
      <address>uds://tmp/lsperld.sock</address>
      <note></note>
      <maxConns>20</maxConns>
      <env>FCGI_PERL_MAX_REQ=1000</env>
      <initTimeout>60</initTimeout>
      <retryTimeout>0</retryTimeout>
      <persistConn>1</persistConn>
      <pcKeepAliveTimeout>30</pcKeepAliveTimeout>
      <respBuffer>0</respBuffer>
      <autoStart>1</autoStart>
      <path>$SERVER_ROOT/fcgi-bin/lsperld.fpl</path>
      <backlog>20</backlog>
      <instances>20</instances>
      <runOnStartUp></runOnStartUp>
      <extMaxIdleTime>60</extMaxIdleTime>
      <priority></priority>
      <memSoftLimit>100M</memSoftLimit>
      <memHardLimit>150M</memHardLimit>
      <procSoftLimit></procSoftLimit>
      <procHardLimit></procHardLimit>
    </extProcessor>
Reply With Quote
  #7  
Old 08-10-2007, 02:12 PM
bbennett bbennett is offline
Member
 
Join Date: Aug 2007
Posts: 37
Much appreciated, will try it to get it working once I fix that other issue.
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 09:27 PM.



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