1. 程式人生 > >apache配置文件語法錯誤命令:httpd -t

apache配置文件語法錯誤命令:httpd -t

.so apache 配置文件 port 解決方法 mod 語法錯誤 ria supported

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