Perl (CGI Scripts)

Discussion in 'CGI/Perl/Python' started by bbennett, Aug 10, 2007.

  1. bbennett

    bbennett New Member


    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.
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. bbennett

    bbennett New Member

    I add these under >server then under the >external app or >script handler sub sections?
  4. mistwang

    mistwang LiteSpeed Staff

    under server->external app for the FCGI Application, then server->script handler section for the script handler of "pl".
  5. bbennett

    bbennett New Member

    Great, that clears it up for me, just wasnt sure which section to add it.
  6. mistwang

    mistwang LiteSpeed Staff

    A sample perld configuration:
  7. bbennett

    bbennett New Member

    Much appreciated, will try it to get it working once I fix that other issue.
  8. BarzonCL

    BarzonCL New Member

    Can you Explain how to ad this settings to Webmin Console (LSWS)?
    Im having the same issue, can run CGI scripts... :(

Share This Page