LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Install/Configuration (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=11)
-   -   C/C++ FastCGI (http://www.litespeedtech.com/support/forum/showthread.php?t=192)

fryk 06-01-2005 09:13 AM

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?

mistwang 06-01-2005 09:27 AM

File "echo" under examples/ directory is a shell script wrapper, you should looking for real executable binary under examples/.libs/ .

fryk 06-01-2005 10:01 AM

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

mistwang 06-01-2005 10:18 AM

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

fryk 06-01-2005 10:35 AM

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...

mistwang 06-01-2005 11:09 AM

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

fryk 06-02-2005 03:22 AM

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...

fryk 06-02-2005 06:00 AM

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"

mistwang 06-02-2005 10:14 AM

Well, maybe you need to read the document throughly.
Use the phpFCGI external application as an example.

You can make it. :-)

fryk 06-02-2005 10:19 AM

Do I need to set Handler?

Does it mean that I have to define EACH fcgi script as Externall App???


All times are GMT -7. The time now is 10:34 PM.