Cannot load C:/php/php5apache2.dll into server的解决办法

第一次用搭建apache+php的Website,出现以上错误:
LoadModule php5_module C:/php5/php5apache2.dll

开始以为是路径或者是变量出错,不过原来不是这样,原来另有蹊跷

其中C:/php5/php5apache2.dll是你安装php的相应路径.
不要把“php5apache2.dll”和“php5apache.dll”混淆

php5apache.dll只适用于Apache 1.0.*版本
php5apache2.dll只适用于Apache 2.0.*版本

如果是2.2.*以上版本调用“php5apache2.dll”,就可能会出现“Cannot load C:/php/php5apache2.dll into server:The specified module could not be found。”或者
“The requested operationhas failed”

只要将其修改成“php5apache2_2.dll”即可,如
LoadModule php5_module C:/php/php5apache2_2.dll

This entry was posted in Technology and tagged . Bookmark the permalink. 16,044 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *