雑多メモ
$ apachectl -t httpd: apr_sockaddr_info_get() failed for test_server httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Syntax OK
構文的にはおkだけど色々やることがあるっぽい
httpd: apr_sockaddr_info_get() failed for test_server
これは、/etc/sysconfig/network
でお前「test_server」ってホスト名設定してるだろ? あれな。/etc/hosts
に設定されていないから探すことができないの。
ということで
$ vim /etc/hosts ################# 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 test_server # 最後に追加 #################
これで良し
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
ServerName
ってディレクティブあるだろ? お前にそれを設定してほしいの。
$ vim /etc/httpd/conf/httpd.conf ################# 276 #ServerName www.example.com:80 277 ServerName 127.0.0.1 # 追加した #################
設定した結果
再度実行
$ apachectl -t
Syntax OK
おkでした。