这两天把服务器上的apache和php升级到2.2.22和5.2.17 (源环境为wamp1.7.1)
后才测试的2.4.4及5.4.15 也是同样的解决办法
按照网上的教程,下载了apache的安装版,php的zip包,都配置好了
单配apache是没问题的
但只要讲php按照原来的进行配置,死活不成功,或者apache crash,或者mysql无法访问
后来发现,问题在于php的路径和ext的文件路径
但是无论怎么配置,都会出现如下错误:
错误1:The Apache service named reported the following error:
>>> httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.16.153 for ServerName
错误2:错误应用程序名称: httpd.exe,版本: 2.2.22.0,时间戳: 0x4f242d7a
错误模块名称: php5ts.dll,版本: 5.2.17.17,时间戳: 0x4d25fb49
异常代码: 0xc0000005
错误偏移量: 0x000f424c
错误进程 ID: 0xcf4
错误应用程序启动时间: 0x01ce5aa2fda3928c
错误应用程序路径: d:\wamp\apache2\bin\httpd.exe
错误模块路径: D:\wamp\php\php5ts.dll
报告 ID: 3c1ad30d-c696-11e2-be34-50e549685454
错误3:
错误存储段 ,类型 0
事件名称: APPCRASH
响应: 不可用
Cab ID: 0
问题签名:
P1: httpd.exe
P2: 2.2.22.0
P3: 4f242d7a
P4: php5ts.dll
P5: 5.2.17.17
P6: 4d25fb49
P7: c0000005
P8: 000f424c
P9:
P10:
附加文件:
可在此处获取这些文件:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_httpd.exe_4861d84ea174d185af71cb6eb93daafa1c5a4f_0fae391d
分析符号:
重新检查解决方案: 0
报告 Id: 3c1ad30d-c696-11e2-be34-50e549685454
报告状态: 4
错误4:
错误存储段 ,类型 0
事件名称: APPCRASH
响应: 不可用
Cab ID: 0
问题签名:
P1: httpd.exe
P2: 2.2.22.0
P3: 4f242d7a
P4: php5ts.dll
P5: 5.2.17.17
P6: 4d25fb49
P7: c0000005
P8: 000f424c
P9:
P10:
附加文件:
可在此处获取这些文件:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_httpd.exe_4861d84ea174d185af71cb6eb93daafa1c5a4f_0fae391d
分析符号:
重新检查解决方案: 0
报告 Id: 3c1ad30d-c696-11e2-be34-50e549685454
报告状态: 0
后来发现,必须在path中加入如下路径,就好了
D:\wamp\php\ext;D:\wamp\php