Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:other-ext-apps:apache-mod-perl-equivalent [2018/03/02 21:36]
Jackson Zhang
litespeed_wiki:other-ext-apps:apache-mod-perl-equivalent [2023/03/25 14:06] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-===== How to run perl script on LSWS native configuration?​ ===== +~~REDIRECT>​https://​docs.litespeedtech.com/lsws/extapp/perl/configuration/~~
- +
-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 scriptsThe Perl CGI daemon is located at  +
- +
-  /usr/local/lsws/fcgi-bin/lsperld.fpl +
-{{ :​litespeed_wiki:​other-ext-apps:​lsperld-ext-app.png?​600 |}} +
- +
-{{ :​litespeed_wiki:​other-ext-apps:​lsperld-ext-app-handler.png?​600 |}} +
- +
-As "​lsperld.fpl"​ utilizes the Fast CGI interface, you need to install Perl Fast CGI module FCGI.pm first. It is available at CPAN(Comprehensive Perl Archive Network). +
- +
-On CentOS7, to add perl-CPAN package first. +
-  yum install epel-release +
-  yum install gcc +
-  yum install perl-CPAN +
-   +
-The following command can be used to install FCGI.pm through CPAN:  +
-  perl -MCPAN -e '​install FCGI'  +
- +
-Without perl-CPAN package installed, the above installation may run into the following error: +
-  Can't locate CPAN.pm in @INC (@INC contains: ​/usr/local/​lib64/​perl5 /​usr/​local/​share/​perl5 /​usr/​lib64/​perl5/​vendor_perl /​usr/​share/​perl5/​vendor_perl /​usr/​lib64/​perl5 /​usr/​share/​perl5 .). +
-  BEGIN failed--compilation aborted. +
-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: 2018/03/02 21:36
  • by Jackson Zhang