无效的命令'SSLEngine'Centos


10

我卸载了Apache,然后重新安装了它,现在当我尝试启动它时,出现以下错误:

Syntax error on line 94 of /usr/local/psa/admin/conf/generated/13636697550.95452800_server.include:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

我没有尝试启用SSL或其他任何功能。我对Linux和Apache还是很陌生,所以如果有人可以帮助我,我将非常感激。

Answers:


20

/etc/httpd/conf或中可能有一些被遗忘的配置/etc/httpd/conf.d。查找(grep SSL /etc/httpd/{conf,conf.d} -r)并销毁它或为Apache安装ssl模块:

yum install mod_ssl

**更快:** yum -y install mod_ssl
George Chalhoub

这个答案也为我解决了这个问题
Fokwa Best

3

在我的情况下,我安装了mod_ssl,但未启用它。为此,我运行了:

sudo a2enmod ssl

2

检查是否已经在httpd.conf文件中加载了mod_ssl:

LoadModule ssl_module modules/mod_ssl.so
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.