現在、Centos 5 を使用して Linux サーバーを実行しています。
先日、ssh で「yum php-devel」を使用して php-devel をインストールしました。
このコマンドでApacheサーバーを再起動しようとしました
service httpd restart
ただし、Apache サーバーは別の httpd.conf ファイルを読み取ります。
「/usr/local/apache/conf/httpd.conf」ファイルを見つける httpd.conf ファイルを読み取ることを想定しています
ただし、現在は「/etc/httpd/conf/httpd.conf」を読み取ります。
したがって、このエラーが発生します。
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 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
なぜこれが起こっているのか知っていますか?
Apache サーバーの再起動時に httpd.conf ファイルの方向をリセットする方法はありますか?