Apache 2.2 无法启动

Apache 2.2 无法启动

yum 更新后我的 apache 无法启动,出现以下错误:
# service httpd restart Stopping httpd: [FAILED] Starting httpd: httpd: Syntax error on line 13 of /etc/httpd/conf/httpd.conf: Cannot load modules/mod_authn_alias.so into server: /etc/httpd/modules/mod_authn_alias.so: cannot open shared object file: No such file or directory [FAILED]

第 13 行如下:
Header: PidFile run/httpd.pid
# MR -- must be disable here because can not overrite! -- importance for proxy-to-apache
# Listen 80 .... Line 13: LoadModule authn_alias_module modules/mod_authn_alias.so

答案1

如果您从 Apache 2.2 更新到 Apache 2.4,那么这很有意义。这是因为 mod_authn_alias 不再存在。其功能驻留在 mod_authn_core 模块中。注释掉 /etc/httpd/conf/httpd.conf 中的第 13 行应该可以解决问题。

相关内容