Apacheのエラー文とその原因の一覧です。シンプルなものですが、いくつかまとめておきます。
【エラー内容1】
# /sbin/service httpd start Starting httpd: httpd: apr_sockaddr_info_get() failed for host-name httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (98)Address already in use: make_sock: could not bind to address [::]:443
【原因と対応】
原因は /etc/sysconfig/network に記述の HOSTNAME が見つからないこと。もちろん自分自身なので /etc/hosts の 127.0.0.1 の部分に記述したらエラーは解消します。
【エラー内容2】
# /etc/init.d/httpd status httpd dead but subsys locked
【原因と対応】
# sudo rm -f /var/lock/subsys/httpd
【エラー内容3】
# /sbin/service httpd start Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443
【原因と対応】
Listen 443が複数記述されている。
【エラー内容4】
デフォルト以外のフォルダへのログの書き込み、logrotateができない
[notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.5.17 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations Could not open log file '/xxxxx/logs/error_log.xxxxxxx' (Permission denied) Could not open log file '/xxxxx/logs/access_log.xxxxxxx' (Permission denied) piped log program '/usr/sbin/rotatelogs -l /xxxxx/logs/access_log.%Y%m%d xxxxxx' failed unexpectedly Could not open log file '/xxxxx/logs/access_log.xxxxxxx' (Permission denied)
【原因と対応】
SElinuxが原因なので、SElinuxを無効にする。
他にもあれば随時追加していきます。