You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Anna Harris <ab...@gmail.com> on 2015/12/08 21:39:18 UTC

[users@httpd] Apache 2.2, mod_perl on windows 10. Help needed

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 Hello.pm from localhost/hello with these
configurations in http.conf, indicating mod_perl installed correctly.

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

Perl startup.pl 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 startup.pl script that is in eclipse using the perlRequire statement
in httpd.conf.

Error like this in apache log:

[error] Can't locate PageTool.pm 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/
startup.pl line 21

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

Any help would be appreciated.