在windows上使用xampp搭建php的开发环境,后来又安装了oracle 10g。

你会发现,由于oracle 10g 建立了“perl5lib”的环境变量路径,从而导致xampp启动apache的时候报错:

[Thu Oct 22 08:56:27 2009] [error] Can't load Perl file: C:/xampp/apache/conf/extra/startup.pl for server localhost:80, exiting...

有2种解决方法:

1、重新配置好perl5lib环境变量,这种方法可能有些麻烦;

2、更简单的方法是:

找到apache\conf\extra\perl.conf文件,增加一行为:

LoadFile "C:/xampp/perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so
PerlSwitches -T
PerlPostConfigRequire "C:/xampp/apache/conf/extra/startup.pl"

 

 

其中PerlSwitches -T 参数-T的意思为检查perl所在路径。

 

相关文章:

  • 2021-09-29
  • 2021-12-24
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-04-20
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-06-25
  • 2022-02-20
  • 2021-08-05
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案