Apache2.2启用ssl后无法启动的解决
2014-07-03 启用ssl,配置文件httpd.conf中启用了httpd-ssl.conf,服务无法启动,一条条加回注释,发现 SSLSessionCache "shmcb:C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)" 这么一行搞出的问题,网上找到国外网友的贴,原因是Apache把Program Files (x86)中的括号识别成ssl_scache(512000)中的括号,解决方法好多,有做链接的,或者干脆搬走文件,最简单的还是用短文件名,用dir /x c:\命令看下Program Files (x86)被缩写成啥:PROGRA~2,直接用这个不行,需要转义:PROGRA\~2,所以这一行最终写成: SSLSessionCache "shmcb:C:/PROGRA\~2/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)" 这样就可以启动了,看下C:\Program Files (x86)\Apache Software Foundation\Apache2.2\logs中的error.log,里面多次有: httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.**.** for ServerName 于是将httpd.conf和httpd-ssl.conf中ServerName赋值为localhost:80,即: ServerName localhost:80
Labels: Operation and Maintenance, Windows
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home