httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 13182] New: - cgi scrips runs, but do not produce any output
Date Tue, 01 Oct 2002 17:58:44 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13182>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13182

cgi scrips runs, but do not produce any output

           Summary: cgi scrips runs, but do not produce any output
           Product: Apache httpd-1.3
           Version: 1.3.26
          Platform: PC
               URL: http://iatp.org.ua/cgi-bin/test/test.cgi
        OS/Version: FreeBSD
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: mod_cgi
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: serg@petrovich.kiev.ua


I do not know, how does it happed.
But all my cgi scrips are not working after some time.

Here is an example
$ telnet hosting 80
Trying 194.44.225.10...
Connected to hosting.
Escape character is '^]'.
GET /cgi-bin/test/test.cgi HTTP/1.0

HTTP/1.1 500 Internal Server Error
Date: Tue, 01 Oct 2002 17:44:23 GMT
Server: Apache/1.3.26 (Unix) mod_ssl/2.8.10 OpenSSL/0.9.6e PHP/4.2.3 rus/PL30.15
Connection: close
Content-Type: text/html; charset=windows-1251
Expires: Thu, 01 Jan 1970 00:00:01 GMT
Last-Modified: Tue, 01 Oct 2002 17:44:24 GMT

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator, [skipped] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>Apache/1.3.26 Server at iatp.org.ua Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

SriptLog: 
%% [Tue Oct  1 20:43:40 2002] GET /cgi-bin/test/test.cgi HTTP/1.0
%% 500 /var/www/iatp.org.ua/cgi-bin/test/test.cgi
%request
Host: iatp.org.ua
%response
%% [Tue Oct  1 20:44:24 2002] GET /cgi-bin/test/test.cgi HTTP/1.0
%% 500 /var/www/iatp.org.ua/cgi-bin/test/test.cgi
%request
%response

mod_cgi is compiled with DEBUG_CGI:
Attempting to exec /var/www/iatp.org.ua/cgi-bin/test/test.cgi as CGI child (argv0 = test.cgi)
Environment:
'CHARSET=windows-1251'
'CHARSET_DETERMINED_BY=Default'
'CHARSET_HTTP_METHOD=http://'
'CHARSET_SERVER_NAME=iatp.org.ua:80'
'CHARSET_SERVER_PORT=80'
'DOCUMENT_ROOT=/var/www/iatp.org.ua'
'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/petr/bin'
'REMOTE_ADDR=194.44.225.70'
'REMOTE_PORT=4404'
'SCRIPT_FILENAME=/var/www/iatp.org.ua/cgi-bin/test/test.cgi'
'SERVER_ADDR=194.44.225.10'
'SERVER_ADMIN=tech-support@iatp.org.ua'
'SERVER_NAME=iatp.org.ua'
'SERVER_PORT=80'
'SERVER_SIGNATURE=<ADDRESS>Apache/1.3.26 Server at iatp.org.ua Port 80</ADDRESS>
'
'SERVER_SOFTWARE=Apache/1.3.26 (Unix) mod_ssl/2.8.10 OpenSSL/0.9.6e PHP/4.2.3 
rus/PL30.15'
'SOURCE_CHARSET=windows-1251'
'UNIQUE_ID=PZne98Is4QoAAHZCY7I'
'GATEWAY_INTERFACE=CGI/1.1'
'SERVER_PROTOCOL=HTTP/1.0'
'REQUEST_METHOD=GET'
'QUERY_STRING='
'REQUEST_URI=/cgi-bin/test/test.cgi'
'SCRIPT_NAME=/cgi-bin/test/test.cgi'


Suexec log is empty. That means in this request suexec is not used.

Here is file test.cgi:
#!/bin/sh

/usr/bin/touch ttt

echo "Content-type: text/plain"
echo
echo "this is just a test"

/usr/bin/touch ttt2

After http-request, it really creates two files ttt and ttt2.

This script runned manually under apache user (www) produces following output:
Content-type: text/plain

this is just a test

$ httpd -v
Server version: Apache/1.3.26 (Unix)
Server built:   Oct  1 2002 20:38:25
20:56:04 [root@hosting:/var/www/iatp.org.ua/cgi-bin/test]#
$ httpd -l
Compiled-in modules:
  http_core.c
  mod_charset.c
  mod_env.c
  mod_define.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
  mod_ssl.c
suexec: enabled; valid wrapper /usr/local/sbin/suexec

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message