httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anna Harris <>
Subject [users@httpd] Apache 2.2, mod_perl on windows 10. Help needed
Date Tue, 08 Dec 2015 20:39:18 GMT
Trying to set up a local environment for web application that we support.

windows 10 OS
Apache 2.2 installed. (win32)
Mod_perl 5.12 installed. (win32)
Strawberry perl 5.12 installed. (win32)

Can successfully run a simple from localhost/hello with these
configurations in http.conf, indicating mod_perl installed correctly.

PerlModule Apache2::Hello
  <Location /hello>
    SetHandler modperl
    PerlResponseHandler Apache2::Hello

Perl in eclipse has correct @INC. Can spit out @ INC with the
following command in eclipse script:
use Data::Dumper;
print Dumper \@INC;

But Apache log shows the @INC differently, and is incorrect, causing @INC
errors in the log and web application can not run. Apache is calling the
same script that is in eclipse using the perlRequire statement
in httpd.conf.

Error like this in apache log:

[error] Can't locate in @INC (@INC contains: C:\\Program Files
(x86)\\Apache Software Foundation\\Apache2.2 C:\\Program Files
(x86)\\Apache Software Foundation\\perllib C:/Strawberry/perl/site/lib
C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/lib . C:/Program Files
(x86)/Apache Software Foundation/Apache2.2) at C:/Program Files
(x86)/Apache Software Foundation/Apache2.2/htdocs/braveweb/apps-ssl/common/ line 21

This path is different from what is showing in eclipse and is incorrect.

Any help would be appreciated.

View raw message