From: Philip Reynolds (phil at domain redbrick.dcu.ie)
Date: Fri 05 May 2000 - 19:25:43 IST
adam beecher's [adam at domain iewebs.com] 53 lines of dribble included:
<:Ordinarily I'd say it's an Apache permissions problem, but the fact that
<:you're getting a "Premature end of script headers" error implies that the
<:script is *trying* to run, but there's an error in there somewhere - a
<:missing semicolon or summat similar. But the fact that it runs in your
<:UserDir and dunt in the VirtualHost knocks that on the head. So I still
<:reckon it may be permissions. Did you set up the UserDir Directory with the
<:~ tilde?:
<:
<:<Directory /home/users/~*/public_html>
<:
<:That'll probably screw it up anyway. If not though, the best thing is
<:probably to post your httpd.conf and the script saved with a .txt extenstion
<:on the web somewhere so we can have a look at it.
OK. Well basically the problem originates from myself.
A simple perl script that just outputs text works. But basically I have a line
at the top
require "cgi-lib.pl"
It should be looking for that in the current directory and it's not. I've
tried using absolute paths to it.
Error in logs/error_log is
Can't locate cgi-lib.pl in at domain INC ( at domain INC contains: /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 .) at
/home/committe/phil/public_html/cgi-bin/outings.pl line 2.
The last place that looks is the current directory which is the current
cgi-bin directory, so I don't see the problem.
Any ideas?
Phil.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:02 GMT