![]() |
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 |
File "echo" under examples/ directory is a shell script wrapper, you should looking for real executable binary under examples/.libs/ .
|
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 |
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 |
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... |
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 |
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... |
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" |
Well, maybe you need to read the document throughly.
Use the phpFCGI external application as an example. You can make it. :-) |
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. |