Received: (qmail 2100 invoked by uid 2012); 26 Dec 1998 15:26:18 -0000 Message-Id: <19981226152618.2099.qmail@hyperreal.org> Date: 26 Dec 1998 15:26:18 -0000 From: MARCOS MILOHANICH Reply-To: mmilohanich@argensoft.com.ar To: apbugs@hyperreal.org Subject: my cgi script does not work properly X-Send-Pr-Version: 3.2 >Number: 3588 >Category: config >Synopsis: my cgi script does not work properly >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: closed >Class: support >Submitter-Id: apache >Arrival-Date: Sat Dec 26 07:30:00 PST 1998 >Last-Modified: Sat Dec 26 10:39:55 PST 1998 >Originator: mmilohanich@argensoft.com.ar >Organization: >Release: apache 1.1 >Environment: Linux Slackware 3.3 >Description: when i try to run a script the server send me a http 500 error. My log file say exec of xxxx failed, errno is 2 acces to xxx failed for xx.xxx.com.ar , reason :Premature end of script headers My question is : my configurations file are bad?, my script is bad?, whats up? my acces.conf file say: options indexes followsymlinks allowoverride all options followsymlinks indexes execcgi order allow,deny allow from all my srm.conf say : Scriptalias /cgi-bin/ /var/lib/httpd/htdocs/cgi-bin/ and the httpd.conf user nobody group # -1 Users should be able to: run cgi script on cgi-bin directory from any servers Thanks Marcos Milohanich >How-To-Repeat: try with this url 200.41.177.9/cgi-bin/postcard.cgi >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Sat Dec 26 10:39:54 PST 1998 State-Changed-Why: First, 1.1 is a very obsolete version of Apache. As we clearly state, we can't support such obsolete versions. It appears like this is completely and entirely due to you not creating your CGI properly. Ensure you can run it from the command line and it prints out the proper headers. If you don't know how to make a CGI, this is not the place to be trying to figure that out. I suspect that the first #! line in the script is pointing to a program that doesn't exist on your system. >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]