首页 > 代码库 > apache配置文件语法错误命令:httpd -t

apache配置文件语法错误命令:httpd -t

cmd命令行切换到C:\wamp\bin\apache\apache2.4.9\bin目录 
输入httpd -t命令 错误如下: 
1.Syntax error on line 92 of C:/Apache24/conf/extra/httpd-ssl.conf: 
SSLSessionCache: ‘shmcb’ session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?

解决方法:在httpd.conf中找到下面这句话# 
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so 
取消注释(删掉前面的”#”)

apache配置文件语法错误命令:httpd -t