0

i need your help because I need to migrate a Perl application, which appears to be based on something like a CMS called "Profile Manager Premium 4.0". The problem is, i'm trying to use an .htaccess file in order to configure the mod_perl module without having to resort to reload globally the apache daemon and this way harm everyone using it. The problem is there is a file called "pm.cgi" which appears to be the "entry point" for the application and I can't accomplish it to execute correctly, because in the apache error log appears the following message:

[Mon Jul 01 11:01:13 2013] [error] Can't locate data/config/pmpre.cfg in @INC (@INC contains: /opt/rt4/sbin/../local/lib /opt/rt4/sbin/../lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /home/webroot/public_html/group_websites/qpeixe/pm.cgi line 36.\n

I managed to install some missing modules using the CPAN command but this "pmpre" module I couldn't (I don't know the exact name of the module in order to fetch this 'pmpre.cfg').

Furthermore, I'm not sure if I need to use mod_perl or mod_perl_2, but since I'm using Apache 2.2, but I found it seems to use mod_perl_2. So this way, I dropped inside the .htaccess file the following contents:

  <IfModule mod_perl.c>
   SetHandler perl-script
  PerlResponseHandler ModPerl::Registry
  PerlOptions +ParseHeaders
  Options +ExecCGI
  Order allow,deny
  Allow from all 
  </IfModule>

Anyway, I'm not fluent in Perl anyway, so please, I'm just an Web Developer with PHP/Javascript skills.

Anyway, thanks for any help in advance.

4

1 回答 1

0

我猜它要查找的文件是本地创建的。当您发现它的安装位置(或自己重新安装)时,您必须配置 mod_perl 以查看该目录

于 2013-07-02T01:08:16.450 回答