xampp安装后httpd无法启动

安装xampp(xampp-win32-1.8.0-VC9-installer.exe 91.9MB)后,apache无法启动,老是提示:
11:55:50  [apache]  Status change detected: running
11:55:51  [apache]  Status change detected: stopped
启动tomcat也失败
搜索,大部分说是80和443端口被占用,但发现不是这问题,
也有说Apache启动后又马上停止,原因可能是由于安装了oracle10g,与其中的perl5lib变量发生了冲突,
卸载oracle,问题依旧。
继续搜索,说看系统日志。应用程序日志中报错如下:
The Apache service named  reported the following error:
>>> httpd.exe: Syntax error on line 456 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 17 of C:/xampp/apache/conf/extra/httpd-xampp.conf: Cannot load /xampp/php/php5ts.dll into server: \xd3\xc9\xd3\xda\xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xc5\xe4\xd6\xc3
系统日志中报错如下:
Generate Activation Context 为 C:\xampp\php\php5ts.dll 失败。参考错误消息: 操作成功完成。
Resolve Partial Assembly 为 Microsoft.VC90.CRT 失败。 参考错误消息: 参照的汇编没有安装在系统上。
估计是apache要启动php,php启动需要VC90,但VC90没装。
到微软下载Microsoft Visual C++ 2008 Redistributable Package (x86) (vcredist_x86.exe 1.67MB)安装后解决。
12:10:09  [apache]  Executing "c:\xampp\apache\bin\httpd.exe"
12:10:09  [apache]  Return code: 0
12:10:10  [apache]  Status change detected: running

猜你喜欢

转载自snowelf.iteye.com/blog/2038639
今日推荐