Apache检查语法httpd -t 报错:Invalid command 'SSLPassPhraseDialog', perhaps misspelled...的问题。
先说一下应用场景,服务器环境为CentOS7.7,Apache2.4.6。
安装完mod_ssl
# yum -y install mod_ssl
检查Apache语法
# httpd -t
即出现如下报错:
AH00526: Syntax error on line 18 of /etc/httpd/conf.d/ssl.conf: Invalid command 'SSLPassPhraseDialog', perhaps misspelled or defined by a module not included in the server configuration
这时候是不能重启Apache的。
只需编辑ssl配置文件:
# vim /etc/httpd/conf.d/ssl.conf
在 Listen 443 https 的下面加入:
LoadModule ssl_module modules/mod_ssl.so
就解决问题了。
以往,从没出现过此类问题,此次就手动指定mod_ssl吧,仅作记录。
评论
Apache报错:Invalid command 'SSLPassPhraseDialog', perhaps misspelled...的问题。 | 子东的菜畦:Zidon's blog
Pretty element of content. I just stumbled upon your web site and in accession capital to
assert that I get actually enjoyed account your blog posts.
Any way I will be subscribing for your feeds and even I success
you get admission to constantly fast.