CentOS再起動後にApacheが起動できない時の対処法
まずhttpdのプロセスが残っているかの確認
[root@localhost ~]# lsof -i | grep http
httpd 1162 root 4u IPv6 8530 0t0 TCP *:http (LISTEN)
httpd 1162 root 6u IPv6 8534 0t0 TCP *:https (LISTEN)
残っていればプロセスをkill
[root@localhost ~]# kill -9 1162
httpd起動時にssl のパスワードを聞かれるのでssl設定時のパスワードを入力
[root@localhost ~]# /etc/init.d/httpd start
httpd を起動中: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
Apache/2.2.15 mod_ssl/2.2.15 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.
Server localhost.localdomain:443 (RSA)
Enter pass phrase:openssl
これでhttpdの起動となった