CentOS 7.8.2003 (Core)にアップデート

 昨深夜(4月30日)、なんとなく yum update したら、かなり大きいupdateだったので、うっかり実行してしまいました。

 実行した結果、httpdが死んだので、systemctl status httpd すると、

$ sudo systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-04-30 00:27:06 JST; 2min 10s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 896 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 896 (code=exited, status=1/FAILURE)

Apr 30 00:27:06 hiroski.com systemd[1]: Starting The Apache HTTP Server...
Apr 30 00:27:06 hiroski.com httpd[896]: AH00526: Syntax error on line 16 of /etc/httpd/conf.d/autoindex.conf:
Apr 30 00:27:06 hiroski.com httpd[896]: Invalid command 'IndexOptions', perhaps misspelled or defined by a module not included in the server configuration
Apr 30 00:27:06 hiroski.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 30 00:27:06 hiroski.com systemd[1]: Failed to start The Apache HTTP Server.
Apr 30 00:27:06 hiroski.com systemd[1]: Unit httpd.service entered failed state.
Apr 30 00:27:06 hiroski.com systemd[1]: httpd.service failed.

mod_autoindex.so をコメントアウトしていたので、IndexOptionsディレクティブなんて知らんぞ?ということでした。他にはテスト用ドメインで空だったので、welcome.conf の.noindex.htmlが表れていました。

今回、7.7.1908 (Core) から 7.8.2003 (Core) と上がっていたので、インストール時にセットアップされたファイルが存在しないと復活するのだと知り、下手なリネームや削除はバッドノウハウだと分かりました。

前へ

Amazon EC2を試しています

次へ

CentOS 7へメールサーバー(Postfix/Dovecot)をインストールしよう