Apologies if this is a bit long.

I am running apache 1.3.20 compiled with the latest mod_perl on
RH Linux 7.1 and also have the CGI.pm library installed. I am a
linux newbie and not a perl programmer :-(

I can get a number of cgi scripts to run perfectly but some
stubbonly refuse. I keep getting the dreaded Internal Server
Error in my browser with error log entries that report No such
file or directory: exec ...failed [and] Premature end of script
headers...

I tried to uncover some error messages from the scripts using:
perl -c scriptname. Some scripts gave error messages like the
following example...

[root@murray mmf]# perl -c admin.cgi
Content-type: text/html

<H1>Software error:</H1>
<PRE>Can't locate LWP/Simple.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/per
l5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at admin.cgi line 2120.
</PRE>

....but some that resulted in the same apache error messages
reported no syntax errors.

A fairly extensive web search revealed that many people report my
exact problems and have done so with various vintages of apache
and different Linux implementations. Alas, they either received
no solution or got the standard wrap about location certainty and
permission levels. My scripts are where they should be, they
point correctly to perl and their permissions are correct (yep,
files and directories).

In doing this research I encountered info relevant to mod_perl
that said there needs to be appropriate entries in apache.conf
(Alias stuff etc). Being a newbie I can't evaluate this. It
seemed a bit dated. I am wondering if when mod_perl is actually
compiled into apache and gets mentioned in apache.conf as a
loaded module, does apache.conf still need these other references
and if so, is it only for legacy reasons, since several scripts
do run just fine as it is.

Just can't get anywhere on my own with this now folks, so any
help would be very welcome.

Thanks

Peter


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to