我一直在Windows 8上使用xampp,一直都很好,但今天尝试重新启动apache时出现以下信息:
17:54:35 [Apache] Error: Apache shutdown unexpectedly.
17:54:35 [Apache] This may be due to a blocked port, missing dependencies,
17:54:35 [Apache] improper privileges, a crash, or a shutdown by another method.
17:54:35 [Apache] Check the "/xampp/apache/logs/error.log" file
17:54:35 [Apache] and the Windows Event Viewer for more clues
我很久以前已经禁用了使用80端口的服务,并且没有任何软件在使用它。我已经使用netstat命令进行检查。我尝试将端口改为8080,但问题依然存在。因此,我不认为这是一个端口问题。
我的apache error.log和Windows事件查看器中没有任何错误消息。
我已经尝试过以下一些事情,但都没有奏效:
- 以管理员权限启动xampp控制面板,
- 将apache安装为服务,
- 重新启动计算机,
- 在我的httpd.conf文件中添加以下行:
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
并取消注释httpd-ssl.conf文件中的以下行:SSLSessionCache "shmcb:logs/ssl.scache(512000)"