php跨版本升级后遇到无法启动问题修正.

分类
Qampp手册
更新时间
2018-08-22 21:50:45


这是由于非常旧的版本qampp自带的apache配置引起, 许多旧用户会有如下一段配置.

define apachephppath "${AppRoot}/php"
LoadModule php${APHPVER}_module "${apachephppath}/php${APHPVER}apache2_4.dll"
PHPINIDir "${apachephppath}"
LoadFile "${apachephppath}/php${APHPVER}ts.dll"
LoadFile "${apachephppath}/ssleay32.dll"
LoadFile "${apachephppath}/libeay32.dll"


最后三行的指定几个dll文件, 在php7.2+版本以上会发生问题. 需要修改成:

define apachephppath "${AppRoot}/php"
LoadModule php${APHPVER}_module "${apachephppath}/php${APHPVER}apache2_4.dll"
PHPINIDir "${apachephppath}"
#LoadFile "${apachephppath}/php${APHPVER}ts.dll"
#LoadFile "${apachephppath}/ssleay32.dll"
#LoadFile "${apachephppath}/libeay32.dll"


注释掉后面三行即可..


END;


分享工作室[粤ICP备16004795号-2] 腾讯云 / 腾讯AI / 南沙新区 / 信用 0.014