I've installed Apache 1.2.1. on HP-UX B.10.01 A 9000/735 running as
user "www" in "group #33" as recommended for HP-UX. It is invoked with
"/usr/local/sbin/httpd -f /usr/local/lib/apache/conf/httpd.conf".
The problem in queston is that it simply can't execute Perl based CGI
scripts and i don't understand why even after having consulted the
relevant FAQ's, the documentation on "www.apache.org" and various
other information resources about CGI on the net:
------------bite-here--------------
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
and inform them of the time the error occurred, and anything you might
have done that may have caused the error.
------------bite-here--------------
The CGI script to be blamed which has produced this error is
"/usr/local/lib/apache/cgi-bin/printenv":
------------bite-here--------------
#! /usr/local/lib/perl5.004/bin/perl
print "Content-type: text/html\n\n";
while (($key, $val) = each %ENV) {
print "$key = $val<BR>\n";
------------bite-here--------------Quote:}
The entry in the CGI error log states for this:
------------bite-here--------------
%% [Wed Sep 10 11:59:48 1997] GET /cgi-bin/printenv HTTP/1.0
%% 500 /usr/local/lib/apache/cgi-bin/printenv
%request
Host: fjord.imsd.uni-mainz.de
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Via: 1.0 www-cache.netz.klinik.uni-mainz.de:80 (Squid/1.1.10)
X-Forwarded-For: unknown
Cache-control: Max-age=259200
%response
%stderr
exec of /usr/local/lib/apache/cgi-bin/printenv failed, reason: Exec
format error (errno = 8)
------------bite-here--------------
The location of the perl binary is correctly inserted as stated by
`which perl`: "/usr/local/lib/perl5.004/bin/perl".
The relevant configuration entry in "access.conf" is:
------------bite-here--------------
<Directory /usr/local/lib/apache/cgi-bin>
AllowOverride None
Options All
</Directory>
------------bite-here--------------
The relevant configuration entry in "http.conf" is:
------------bite-here--------------
ServerRoot /usr/local/lib/apache
------------bite-here--------------
The relevant configuration entry in "srm.conf" is:
------------bite-here--------------
ScriptAlias /cgi-bin/ /usr/local/lib/apache/cgi-bin/
ScriptLog /usr/local/lib/apache/logs/cgi.log
AddHandler cgi-script .cgi
------------bite-here--------------
Output of "/usr/local/sbin/httpd -l" is:
------------bite-here--------------
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_include.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_auth_anon.c
mod_usertrack.c
mod_browser.c
------------bite-here--------------
Note that CGI scripts based on standard bourne shell scripting run
just fine.
What am i doing wrong? What have i overlooked? Did i provide enough
information for making the problem evident?
Thank you, P. *8^)
--
African Music Archive - Institute for Ethnology and Africa Studies
Johannes Gutenberg-University - Forum 6 - 55099 Mainz/Germany
Our AMA Homepage in the WWW at http://www.uni-mainz.de/~bender/