Perl Preload - need help urgently

Discussion in 'CGI/Perl/Python' started by marcord, Jan 18, 2006.

  1. marcord

    marcord New Member

    Hi all,

    Does anyone know how to preload a perl script, i can't figure out how to preload it and the website depends on it, it will not run without it, all of the site is done with perl and mysql.
  2. mistwang

    mistwang LiteSpeed Staff

  3. marcord

    marcord New Member

    Lost

    I saw the howto i just can't find any docs on how to configure a Fast CGI application. i tried lsperld.fpl and passed the preload.perl to it but it did not do anything.
  4. mistwang

    mistwang LiteSpeed Staff

  5. marcord

    marcord New Member

    Lost

    Can you post an example of the config, i tried to use it but i get an error message.

    That did not help because there is no example of how to configure it.

    :(
  6. mistwang

    mistwang LiteSpeed Staff

    Here you go.

    Name perld
    Address uds://tmp/lshttpd/perld.sock
    Max Connections 20
    Environment FCGI_PERL_MAX_REQ=1000

    Initial Request Timeout (secs) 60
    Retry Timeout (secs) 0
    Persistent Connection Yes
    Connection Keepalive Timeout N/A
    Response Bufferring No
    Auto Start Yes
    Command $SERVER_ROOT/fcgi-bin/lsperld.fpl
    Back Log 100
    Instances 20
    Max Idle Time N/A
    Priority N/A
    Memory Soft Limit (bytes) 100M
    Memory Hard Limit (bytes) 120M
    Process Soft Limit 1000
    Process Hard Limit 1100
  7. mistwang

    mistwang LiteSpeed Staff

    You must have FCGI.pm installed, use command
    perl -MCPAN -e 'install FCGI'

    to install it.
  8. marcord

    marcord New Member

    Still lost

    I have installed FCGI.pm and i get the following error.
    Code:
    [STDERR] Insecure dependency in eval while running setuid at /usr/local/lsws/fcgi-bin/lsperld.fpl line 58
    Please Help :( :oops:
  9. mistwang

    mistwang LiteSpeed Staff

    I don't know what exactly cause this problem.
    Did you set the "setuid" bit on the CGI script or lsperld.fpl?
    I can take a look if you don't mind PM me the login information for your server.

Share This Page