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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > C/C++ FastCGI

Reply
 
Thread Tools Display Modes
  #11  
Old 06-02-2005, 10:22 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Just don't get it.
Reply With Quote
  #12  
Old 06-02-2005, 10:24 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
From localhost/cgi-bin/echo runs as CGI - it spowns new pid every new request.

The goal is to run it as FastCGI - within one pid.

Can't make it. Pleas help guys...
Reply With Quote
  #13  
Old 06-02-2005, 12:08 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Yes, you need to define a external app for each fast cgi application. It is a bad idea to write too many fcgi, which only do one simple task like a CGI, you should combine features as you could.

In the case of /fcgi-bin/echo, you should not define a script handler, instead, you need to define a FCGI context with URL "fcgi-bin/echo" or what ever URL you want to access the fcgi app.
Reply With Quote
  #14  
Old 06-02-2005, 01:20 PM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Quote:
Originally Posted by mistwang
In the case of /fcgi-bin/echo, you should not define a script handler, instead, you need to define a FCGI context with URL "fcgi-bin/echo" or what ever URL you want to access the fcgi app.
Big thanks for your answer. How can I make that contex?
Reply With Quote
  #15  
Old 06-02-2005, 01:47 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
click the name of the virtual host, then "context" tab, then "add"
Reply With Quote
  #16  
Old 06-03-2005, 12:44 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Thank you for your answer. I have just found your great documentation about context.

I realised my silly questions was annoying for you. Sory for that. I appreciate your patience.

You are GREAT guys @ lsws!!
Reply With Quote
  #17  
Old 06-06-2005, 03:49 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Can't make it work. Check this out guys please - what's wrong?

Script


External Apps


Contex


EAecho running


Lunch it - ERROR


Log
Reply With Quote
  #18  
Old 06-06-2005, 08:00 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Ok, I've solved it!!

The reason was: lack of header informations in my script ("content...").

Everything works fine now.

Cheers!
Reply With Quote
  #19  
Old 06-13-2005, 08:10 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
BTW is it possible to have such results:

simple-test-script.php
Code:
lsws (with fastCGI php): ~700req/s
apache2      (pure php): ~700req/s
simple-test-script.c
Code:
lsws, apache2 (both as fastCGI): ~1600req/s
Reply With Quote
  #20  
Old 06-13-2005, 09:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
It doesn't looks right, I don't think the performance of lsws and Apache is in the same class, especially for the fcgi test.

Would you mind prividing more detail information about how the test is performed? What is the simple-test_script does? hardware, software used.
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
FastCGI spawning more processes jooray Bug Reports 7 01-02-2007 03:50 PM
FastCGI > LSAPI ? Jetro Feedback/Feature Requests 6 10-19-2005 09:48 AM
503 Service Unavailable - while setting up Perl FastCGI nigel CGI/Perl/Python 1 02-15-2005 06:15 AM
FastCGI : SCRIPT_FILENAME vs. PATH_TRANSLATED bogus Install/Configuration 2 03-21-2004 11:06 AM
FastCGI responders bogus Install/Configuration 3 12-08-2003 09:31 AM


All times are GMT -7. The time now is 06:23 AM.



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