D
David
Hi,
Hopefully this is being posted in the right place - apologies in
advance if not.
I'm having trouble getting mod_perl and Apache to work together on a
Windows XP Pro' machine. I can get the server to work fine for normal
Perl, but not for mod_perl. All I end up with are error 500's.
I have modified the httpd.conf file several times, and restarted etc,
etc, but no luck. The additions to my .conf file are as follows:
Alias /cgi-perl/ "E:/Apache2/cgi-perl/"
<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader on
Options ExecCGI
</Location>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from 172.10.1.8
</Location>
.... I'm obviously on the internal IP address of 172.10.1.8, and I'm
trying to test a script in http://.../cgi-perl/test.cgi
The same script works fine in /cgi-bin/.
My environment variables and server signature indicate the mod_perl is
installed, as follows:
SERVER_SOFTWARE Apache/2.0.46 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0
PHP/4.3.2 mod_ssl/2.0.46 OpenSSL/0.9.7b
SERVER_SIGNATURE
Apache/2.0.46 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0 PHP/4.3.2
mod_ssl/2.0.46 OpenSSL/0.9.7b Server at 172.10.1.8 Port 79
GATEWAY_INTERFACE CGI/1.1
Now I know that for mod_perl the GATEWAY_INTERFACE should be reading
as something other than CGI/1.1 ... but have tried all sorts of stuff
to no avail.
If I look in the server error logs, then I can see:
Can't locate Apache/Registry.pm in @INC (@INC contains:
E:/Perl/site/lib/ E:/Perl/site/lib/Apache2 E:/Perl/lib
E:/Perl/site/lib . E:/Apache2/ E:/Apache2/lib/perl) at (eval 37) line
3.
.....
I do see Registry.pm in E:/Perl/site/lib/Win32/ and
E:/Perl/site/lib/Win32API/ ... but I can't help thinking that my
problem is not to do with that, since with the paths given above, then
Apache should be able to find them ...
I have actually un-installed and re-installed everything from the
ground up, but still seem to be missing something ...
Any help very much appreciated!
Thanks.
Hopefully this is being posted in the right place - apologies in
advance if not.
I'm having trouble getting mod_perl and Apache to work together on a
Windows XP Pro' machine. I can get the server to work fine for normal
Perl, but not for mod_perl. All I end up with are error 500's.
I have modified the httpd.conf file several times, and restarted etc,
etc, but no luck. The additions to my .conf file are as follows:
Alias /cgi-perl/ "E:/Apache2/cgi-perl/"
<Location /cgi-perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader on
Options ExecCGI
</Location>
<Location /perl-status>
SetHandler perl-script
PerlHandler Apache::Status
order deny,allow
deny from all
allow from 172.10.1.8
</Location>
.... I'm obviously on the internal IP address of 172.10.1.8, and I'm
trying to test a script in http://.../cgi-perl/test.cgi
The same script works fine in /cgi-bin/.
My environment variables and server signature indicate the mod_perl is
installed, as follows:
SERVER_SOFTWARE Apache/2.0.46 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0
PHP/4.3.2 mod_ssl/2.0.46 OpenSSL/0.9.7b
SERVER_SIGNATURE
Apache/2.0.46 (Win32) mod_perl/1.99_10-dev Perl/v5.8.0 PHP/4.3.2
mod_ssl/2.0.46 OpenSSL/0.9.7b Server at 172.10.1.8 Port 79
GATEWAY_INTERFACE CGI/1.1
Now I know that for mod_perl the GATEWAY_INTERFACE should be reading
as something other than CGI/1.1 ... but have tried all sorts of stuff
to no avail.
If I look in the server error logs, then I can see:
Can't locate Apache/Registry.pm in @INC (@INC contains:
E:/Perl/site/lib/ E:/Perl/site/lib/Apache2 E:/Perl/lib
E:/Perl/site/lib . E:/Apache2/ E:/Apache2/lib/perl) at (eval 37) line
3.
.....
I do see Registry.pm in E:/Perl/site/lib/Win32/ and
E:/Perl/site/lib/Win32API/ ... but I can't help thinking that my
problem is not to do with that, since with the paths given above, then
Apache should be able to find them ...
I have actually un-installed and re-installed everything from the
ground up, but still seem to be missing something ...
Any help very much appreciated!
Thanks.