Apache 2.2, mod_perl on windows 10. Help needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux