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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > fastcgi perl (reload)

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2006, 11:31 AM
henpa henpa is offline
Member
 
Join Date: Mar 2006
Posts: 16
Default fastcgi perl (reload)

Hi,

I have lsws set for running my fastcgi perl script. But I am developing the script and testing at the web at the same time. But the changes I make at the script does not appear on the web page, since lsws/fastcgi does not have a new copy of the updated script.

When I used to develop using modperl, it had some kind of verification to check if the script changed, and if it did, it would reload automatically in memory.

Can this be done using lsws and fcgi?

Thanks!
Reply With Quote
  #2  
Old 11-09-2006, 11:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Running perl CGI inside mod_perl is completely different to running perl FCGI. What you want is possible, but as I know, no other web server can do that right now, including Apache, if you use FCGI.

We have a perl runner FCGI script, lsws/fcgi-bin/lsperld.fpl, which is similar to Apache's mod_perl, and it does the reload automatically. I personally prefer perl FCGI over the perl runner or mod_perl running plain CGI script for the sake of better performance though.
Reply With Quote
  #3  
Old 11-09-2006, 11:45 AM
henpa henpa is offline
Member
 
Join Date: Mar 2006
Posts: 16
By the way, will there ever be a LSAPI designed for Perl? And would it perform any better then the default FastCGI one?

Thanks!
Reply With Quote
  #4  
Old 11-09-2006, 11:51 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
There might be. We are busy with other work, have no time for this yet.

It should be faster than the FastCGI one, I believe. If you are good at C coding, you can even make one yourself, should be pretty easy as LSAPI is similar to FCGI's interface. Just use the FCGI.pm as prototype.
Reply With Quote
  #5  
Old 11-09-2006, 12:10 PM
henpa henpa is offline
Member
 
Join Date: Mar 2006
Posts: 16
Thanks for the (very) fast reply!

As for the script reload, I created a new "CGI" context pointing to the same script. It will load each time, but for this very early development period, this will do.

Thanks once again.
Reply With Quote
  #6  
Old 11-09-2006, 12:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yeah, that's a smart solution.
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


All times are GMT -7. The time now is 02:36 AM.



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