无效的命令 'SSLEngine' Centos

Raf*_*bdo 10 httpd centos apache-2.2

我卸载了 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
Run Code Online (Sandbox Code Playgroud)

我没有尝试启用 SSL 或任何东西。我对 Linux 和一般的 Apache 都很陌生,所以如果有人能帮助我解决这个问题,我将不胜感激。

std*_*err 20

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

yum install mod_ssl
Run Code Online (Sandbox Code Playgroud)