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
  #1  
Old 06-01-2005, 09:13 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Default C/C++ FastCGI

Hello,

Is it possible to run such?

I tried to put "echo" example from http://www.fastcgi.com/dist/fcgi.tar.gz to lsws/DEFAULT/cgi-bin but I have get:

Code:
lscgid: execve(): Exec format error
So, is it possible and how can I make it?
Reply With Quote
  #2  
Old 06-01-2005, 09:27 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
File "echo" under examples/ directory is a shell script wrapper, you should looking for real executable binary under examples/.libs/ .
Reply With Quote
  #3  
Old 06-01-2005, 10:01 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
ok I got .libs and "echo". Where should I put it now so it could be lunched as FastCGI.

I appreciate your help!

I've put it in cgi-bin but recieved:

Code:
lscgid: execve(): No such file or directory
Reply With Quote
  #4  
Old 06-01-2005, 10:18 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Not sure why you get that message, if you overwrote the wrapper script with real binary, it should work.

Have you tried executing echo from command line?

If you run the wrapper under examples/ directory, a file called lt-echo will be created under .libs/ dir, maybe you should try that one.

George
Reply With Quote
  #5  
Old 06-01-2005, 10:35 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
I took echo from fcgi-2.4.0/examples/.libs and put it in lsws/DEFAULT/cgi-bin.

I've also restarted lsws. Whats wrong? Could you test it at your env? I would appreciate it. I spend whole my working day trying to lunch fastcgi c by lsws...
Reply With Quote
  #6  
Old 06-01-2005, 11:09 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Are you trying to run echo as cgi or fast cgi? it can be started in both mode.

You need to make sure echo works in command line first.

For configure a FastCGI application, please follow:
http://www.litespeedtech.com/docs/Ho...html#qa_extapp
Reply With Quote
  #7  
Old 06-02-2005, 03:22 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Ok, I'm lost, can't make it.

Could you help me and tell how to define External App / Script Handler in Server Configuration panel for fastcgi/examples/.lib/echo script from FastCGI package (www.fastcgi.com)?

Where to put it and how to configure/run it?

I'm crushed...
Reply With Quote
  #8  
Old 06-02-2005, 06:00 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
I can run echo as cgi with: localhost/cgi-bin/echo.

I've found out also that remaining scripts doesn't seem to work: size, log-dump.

It reports "500 Internal Server Error".

No matter!

Just want to know - how to run echo as fcgi???

I've even tried to set cgi-fcgi handler for .fcgi files and rename echo to echo.fcgi and lunch it from lsws/DEFAULT/html but got: " 503 Service Unavailable"
Reply With Quote
  #9  
Old 06-02-2005, 10:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Well, maybe you need to read the document throughly.
Use the phpFCGI external application as an example.

You can make it. :-)
Reply With Quote
  #10  
Old 06-02-2005, 10:19 AM
fryk fryk is offline
Member
 
Join Date: Jun 2005
Posts: 16
Do I need to set Handler?

Does it mean that I have to define EACH fcgi script as Externall App???
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 05:15 PM.



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