简体   繁体   English

如何在Windows的ActiveState Perl下使用Apache :: Reload?

[英]How do I use Apache::Reload under ActiveState Perl on Windows?

I work with Activestate Perl on Windows and Apache. 我在Windows和Apache上使用Activestate Perl。 I want to run my scripts under mod_perl. 我想在mod_perl下运行我的脚本。 To prevent Apache from caching modules during development I want to use Apache::Reload module. 为了防止Apache在开发过程中缓存模块,我想使用Apache :: Reload模块。

I have added the following lines to httpd.conf 我在httpd.conf中添加了以下几行

PerlModule Apache::Reload
PerlInitHandler Apache::Reload
PerlModule Apache2::RequestUtil

Then I restart Apache. 然后,我重新启动Apache。 And then all my scripts produce Internal Server Error (500). 然后,我所有的脚本都会产生内部服务器错误(500)。

There are no errors in Apache log. Apache日志中没有错误。

Do you know am I wrong or Apache::Reload just does not work on Windows? 您知道我错了还是Apache :: Reload在Windows上不起作用?

It definitely works on Windows. 它绝对可以在Windows上运行。

Do you have these lines in your httpd.conf as well? 您在httpd.conf中也有这些行吗?

PerlSwitches -wT
LoadFile "C:\Perl\bin\perl510.dll"
LoadModule perl_module modules/new/mod_perl.so

LoadFile bin/libapreq2.dll
LoadModule apreq_module modules/mod_apreq2.so

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM