HP3000-L Archives

February 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Robert Rose <[log in to unmask]>
Reply To:
Robert Rose <[log in to unmask]>
Date:
Tue, 11 Feb 1997 18:23:53 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (63 lines)
  I'm using the Apache/iX 1.2 distribution from Mark Bixby on my 3000
running MPE/iX 5.0.  Just got it running the other day.  I'm getting started
wit CGI by creating some simple shell scripts.  The problem I'm having is
that I can't seem to execute anything in my /cgi-bin directory.  There are
a couple of sample scripts there that give the same error as mine.

  I'm running the server in batch as SERVER.APACHE.  I've added the
following to my /htdocs/index.html page to test out my CGI script.

<A HREF="/cgi-bin/test-cgi">
Click here to see the CGI environment variables.
</A>

  I'm no expert in this stuff, but I think this is the way to set it up.
The CGI script is

#!/bin/sh

# disable filename globbing
set -f

echo Content-type: text/plain
echo

echo CGI/1.0 test script report:
echo

echo argc is $#. argv is "$*".
echo

echo SERVER_SOFTWARE = $SERVER_SOFTWARE
echo SERVER_NAME = $SERVER_NAME
echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
echo SERVER_PROTOCOL = $SERVER_PROTOCOL
echo SERVER_PORT = $SERVER_PORT
echo REQUEST_METHOD = $REQUEST_METHOD
echo HTTP_ACCEPT = "$HTTP_ACCEPT"
echo PATH_INFO = "$PATH_INFO"
echo PATH_TRANSLATED = "$PATH_TRANSLATED"
echo SCRIPT_NAME = "$SCRIPT_NAME"
echo QUERY_STRING = "$QUERY_STRING"
echo REMOTE_HOST = $REMOTE_HOST
echo REMOTE_ADDR = $REMOTE_ADDR
echo REMOTE_USER = $REMOTE_USER
echo AUTH_TYPE = $AUTH_TYPE
echo CONTENT_TYPE = $CONTENT_TYPE
echo CONTENT_LENGTH = $CONTENT_LENGTH

  When I try to run this, I get "Internal Server Error", etc.  I'm guessing
there is a configuration file somewhere I don't have setup correctly yet.
The /logs/error file contains the following:

exec of /APACHE/PUB/apache_1.2b4_mpe/cgi-bin/test-cgi failed, errno is 8
[Tue Feb 11 17:23:11 1997] access to
/APACHE/PUB/apache_1.2b4_mpe/cgi-bin/test-c
gi failed for 206.195.100.81, reason: Premature end of script headers
[Tue Feb 11 17:23:11 1997] select: Interrupted function call
[Tue Feb 11 17:23:11 1997] - lingering_close

  Anybody got any clues?

Thanks, Bob Rose

ATOM RSS1 RSS2