无法启动Apache:无效命令'SSLCipherSuite'

Ste*_*eve 6 openssl wampserver

我正在尝试让SSL与WampServer一起工作.我正在按照这个答案,我进入了这一部分:Now test your Apache installation by calling httpd -t.

Apache此时不会重启.Windows错误日志有一个条目:

The Apache service named  reported the following error:
>>> Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration     .
Run Code Online (Sandbox Code Playgroud)

我可以评论出来SSLCipherSuite:

  • C:\ WAMP\BIN\apache的\ apache2.4.23 \的conf \额外\的httpd-ssl.conf中
  • C:\ WAMP\BIN\apache的\ apache2.4.23 \的conf \原有\额外\的httpd-ssl.conf中

但随后在Windows错误报告中将下一个命令报告为无效命令.

有什么指针吗?

小智 7

httpd.conf,需要开启mod_ssl.so

LoadModule ssl_module modules/mod_ssl.so
Run Code Online (Sandbox Code Playgroud)

然后下一个问题是开启mod_socache_shmcb.so

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
Run Code Online (Sandbox Code Playgroud)


小智 5

我遇到了同样的问题,并解决了运行命令:

须藤 a2enmod ssl

希望它对某人有帮助:)