Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
apache_mod_perl_equivalent [2015/07/31 18:15]
Michael Alegre removed
— (current)
Line 1: Line 1:
-===== How to use the persistent Perl CGI daemon? ===== 
  
- 
-LiteSpeed comes with a persistent Perl CGI daemon which can run perl CGI script without modification,​ just like mod_perl in Apache. 
- 
-You need to configure it as a Fast CGI application,​ and then add a script handler for "​pl"​ or whatever suffixes used for Perl scripts. The Perl CGI daemon is located at  
-  lsws/​fcgi-bin/​lsperld.fpl. 
-As "​lsperld.fpl"​ utilizes the Fast CGI interface, you need to install Perl Fast CGI module FCGI.pm first. It is available at http://​www.fastcgi.com or through CPAN. 
-The following command can be used to install FCGI.pm through CPAN:  
-  perl -MCPAN -e '​install FCGI' 
-In order to deal with increasing memory usage of a persistent process, number of requests that a Perl daemon can process is controlled by an environment variable FCGI_PERL_MAX_REQ,​ default is 500. 
-For example: FCGI_PERL_MAX_REQ=1000. 
  • Admin
  • Last modified: 2015/07/31 18:15
  • by Michael Alegre