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

Go Back   LiteSpeed Support Forums > External Applications > CGI/Perl/Python > Perl Preload - need help urgently

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2006, 04:12 AM
marcord marcord is offline
New Member
 
Join Date: Jan 2006
Posts: 4
Default Perl Preload - need help urgently

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.
Reply With Quote
  #2  
Old 01-18-2006, 11:26 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please try this.

http://www.litespeedtech.com/docs/Ho....html#qa_perld
Reply With Quote
  #3  
Old 01-18-2006, 12:15 PM
marcord marcord is offline
New Member
 
Join Date: Jan 2006
Posts: 4
Default 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.
Reply With Quote
  #4  
Old 01-18-2006, 12:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please try to follow this to setup a FCGI app, :-)

http://www.litespeedtech.com/docs/Ho...html#qa_extapp

The configuration should looks pretty much like the lsphp LSAPI app.

After that, just add a script handler for "perl" using the fcgi app as the handler.
Reply With Quote
  #5  
Old 01-18-2006, 03:56 PM
marcord marcord is offline
New Member
 
Join Date: Jan 2006
Posts: 4
Default 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.

Reply With Quote
  #6  
Old 01-18-2006, 05:54 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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
Reply With Quote
  #7  
Old 01-18-2006, 06:02 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You must have FCGI.pm installed, use command
perl -MCPAN -e 'install FCGI'

to install it.
Reply With Quote
  #8  
Old 01-18-2006, 11:57 PM
marcord marcord is offline
New Member
 
Join Date: Jan 2006
Posts: 4
Default 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:
Reply With Quote
  #9  
Old 01-19-2006, 11:43 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PERL coding issue with dates smoniz CGI/Perl/Python 0 04-09-2007 08:04 AM
fastcgi perl (reload) henpa Install/Configuration 5 11-09-2006 12:15 PM
Perl Chroot'd Environment zoom CGI/Perl/Python 10 12-22-2005 02:37 PM
Context and perl regexps zellster Install/Configuration 3 06-17-2005 01:21 PM
503 Service Unavailable - while setting up Perl FastCGI nigel CGI/Perl/Python 1 02-15-2005 06:15 AM


All times are GMT -7. The time now is 04:32 PM.



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