Hiya all! Ever get this kinda error message in Apache when trying to run a perl script that uses CGI.pm?
Code:
Can't locate Apache.pm in @INC (@INC contains: ...... )
Well, in case you're having difficulty with your server like I did, just do the following (worked for me like a charm)! Change your perl.conf file (on RH8 or 9 it's in /etc/httpd/conf.d/) to look like something this:
Code:
LoadModule perl_module modules/mod_perl.so
<FilesMatch "\.(pl|perl)$">
SetHandler perl-script
#PerlHandler ModPerl::Registry::handler
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
</FilesMatch>
Note how I commented out PerlHandler and replaced it with a PerlResponseHandler directive. That straightened things out. Not sure why, hitting the "books" now...