无效的命令“SSLEngine”Centos

我卸载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一般都很陌生,所以如果有人能够帮助我,我会非常感激。

/etc/httpd/conf/etc/httpd/conf.d可能有一些被遗忘的configuration。 find( grep SSL /etc/httpd/{conf,conf.d} -r )并将其销毁或为Apache安装ssl模块:

 yum install mod_ssl 

在我的情况下,我已经安装了mod_ssl,但没有启用。 要做到这一点,我跑了:

 sudo a2enmod ssl 

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

 LoadModule ssl_module modules/mod_ssl.so