Subject: Problem with scripts in apache-22.214.171.124
To: NetBSD-pkg <email@example.com>
From: Dave Millen <firstname.lastname@example.org>
Date: 12/06/1998 22:42:39
I have just upgraded my site development system from 1.3.0 to 1.3.3 and now,
apache will not run any of my perl scripts - either as '.pl' or '.cgi'.
I have modified the appropriate sections of access.conf, httpd.conf and srm.conf
to cover the virtual hosts used, setting 'options ExecCGI' for the cgi-bin
directories. These are all now set to match how they were under 1.3.0.
The error_log for a failure is as follows(date removed for clarity):
[error] (13)Permission denied: exec of
[error] [client 192.168.0.1] Premature end of script headers:
perldb.cgi and the calling page worked fine on 1.3.0 and still work when tested
on an ISP's server, so the problem must be in my setup.
The requests are getting to the correct script, but are failing(I think) to run
perl. I say this because if the first line of the script is changed (from
'#!/usr/pkg/bin/perl') to a nonsense statement, the first error line above
changes to something like:
[error] Invalid exec format:
Can anyone tell me what I have overlooked or failed to set?
Make it idiot-proof and someone will make a better idiot!