RE: TUX CGI module problems

"Serge Sozonoff" <[email protected]>
Newsgroups gmane.network.tux
Message-ID <3C33A216FCFD3A49B79DA3B98872C8413BDE68@MAIL2>
Following on:
 
Here is some debug info from tux if it helps. (Ingo :-)  ? )
 
May 15 14:17:53 mon kernel: <36886:proto_http.c:1661>: using MIME type TUX/CGI:.cgi, 2.
May 15 14:17:53 mon kernel: <36886:proto_http.c:1683>: CGI request cf515800.
May 15 14:17:53 mon kernel: <36886:extcgi.c:311>: keepalive cleared for req cf515800.
May 15 14:17:53 mon kernel: <36886:extcgi.c:262>: before CGI exec.
May 15 14:17:53 mon kernel: <36886:cgi.c:222>: kernel thread created PID 1061.
May 15 14:17:53 mon kernel: <36886:extcgi.c:264>: after CGI exec.
May 15 14:17:53 mon kernel: <36886:output.c:49>: sendmsg ret: 61, written: 0, left: 61.
May 15 14:17:53 mon kernel: <36886:output.c:69>: sendmsg FINAL ret: 61, written: 61, left: 0.
May 15 14:17:53 mon kernel: <36886:extcgi.c:86>: reading 1024 bytes via sys_read().
May 15 14:17:53 mon kernel: <36886:accept.c:772>: DONE TUX atom c0266ce0, req cf515800, atom_idx: 0, at c025b498.
May 15 14:17:53 mon kernel: <36886:main.c:147>: fast thread: no work to be done, sleeping.
May 15 14:17:53 mon kernel: <36886:cgi.c:157>: doing exec(/cgi-bin/mon.cgi).
May 15 14:17:53 mon kernel: <36886:cgi.c:159>: argv: <36886:cgi.c:162>: {extcgi} <36886:cgi.c:165>: 
May 15 14:17:53 mon kernel: <36886:cgi.c:166>: envp: <36886:cgi.c:169>: {GATEWAY_INTERFACE=CGI/1.1} <36886:cgi.c:169>: {CONTENT_LENGTH=0} <36886:cgi.c:169>: {REMOTE_ADDR=62.202.147.200} <36886:cgi.c:169>: {SERVER_PORT=80} <36886:cgi.c:169>: {SERVER_SOFTWARE=TUX/2.0 (Linux)} <36886:cgi.c:169>: {DOCUMENT_ROOT=/} <36886:cgi.c:169>: {PATH_INFO=/} <36886:cgi.c:169>: {QUERY_STRING=} <36886:cgi.c:169>: {REQUEST_METHOD=GET} <36886:cgi.c:169>: {SCRIPT_NAME=mon.cgi} <36886:cgi.c:169>: {SERVER_PROTOCOL=HTTP/1.1} <36886:cgi.c:169>: {HTTP_COOKIE=dev-O2IUserID=1520} <36886:cgi.c:169>: {SERVER_NAME=localhost} <36886:cgi.c:172>: 
May 15 14:17:53 mon kernel: <36886:cgi.c:194>: bug: exec() returned -2.
May 15 14:17:53 mon kernel: <36886:extcgi.c:90>: got -512 bytes from sys_read() (total: 0).
May 15 14:17:53 mon kernel: <36886:extcgi.c:93>: CGI reply: (-512 bytes, total 0).
May 15 14:17:53 mon kernel: <36886:main.c:89>: reaped 1 kids (c027b056) [signals pending: 00000000].
May 15 14:17:53 mon kernel: <36886:extcgi.c:86>: reading 1024 bytes via sys_read().
May 15 14:17:53 mon kernel: <36886:extcgi.c:90>: got 0 bytes from sys_read() (total: 0).
May 15 14:17:53 mon kernel: <36886:extcgi.c:93>: CGI reply: (0 bytes, total 0).
May 15 14:17:53 mon kernel: <36886:extcgi.c:104>: CGI done reply chunk: (0 bytes last, total 0).
May 15 14:17:53 mon kernel: <36886:extcgi.c:117>: bytes_sent: 0

 
 
Serge

-----Original Message-----
From: Serge Sozonoff 
Sent: 15 May 2002 15:05
To: [email protected]
Subject: TUX CGI module problems


Hi Guys,
 
RH 7.2/2.4.18 kernel and Tux 2.2.5
Tux compiled as module
 
I know this has been covered a few time in this list already and despite this info I still cannot get the Tux CGI module to work correctly.
 
I have TUX/CGI       cgi pl setup correctly in tux.mime.types
I have set the cgiroot = / so there should not be any chroot problems.
I have my documentroot set to /www
under /www I have created a cgi-bin directory.
I have a zero length file in /www called test.cgi
I have my real test.cgi script under /www/cgi-bin/
When I call http://localhost/test.cgi in my browser I just get blank return.
 
A line from extended logging looks something like this:
 
62.202.147.200:59994 - - Wed May 15 13:42:41 2002 (0,-1,0) [K:0,CM:0] "GET /test.cgi HTTP/1.1" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461)" - 0 200

Not sure how to interpret this since I have not found and doc on the extended log format.
 
Any thoughts are more then welcome.
 
Thanks, Serge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.