茫茫網海中的冷日 - 對這文章發表回應
茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1729830 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
PIMG_00138.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

對這文章發表回應

發表限制: 非會員 可以發表

發表者: 冷日 發表時間: 2014/2/10 2:59:33
How to Fix AH00558 and AH00557 httpd apr_sockaddr_info_get() Error Message
by Ramesh

When you are starting Apache server, you might get the AH00557 and AH00558 warning message as shown below.
# /usr/local/apache2/bin/apachectl start
AH00557: httpd: apr_sockaddr_info_get() failed for dev-server
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Apache/2.4.2 mod_ssl (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 www.example.com:443 (RSA)
Enter pass phrase:
OK: Pass Phrase Dialog successful.

You’ll also get the same warning message even when you stop the Apache HTTPD server as shown below.
# /usr/local/apache2/bin/apachectl stop
AH00557: httpd: apr_sockaddr_info_get() failed for dev-server
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

If you are using service httpd to stop and start, you ‘ll get the similar warning message.
# service httpd start
Starting httpd: httpd: apr_sockaddr_info_get() failed for dev-server
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

To fix the above warning message, add the “ServerName” directive to the httpd.conf file accordingly.
# vi /usr/local/apache2/conf/httpd.conf
ServerName 192.168.1.2

Note: Depending on how your are planning to setup the Apache, the above ServerName directive can either be a hostname, or ip-address, or fully qualified domain name. If you are just running the Apache for internal testing purpose, you can simply set it to the ip-address of the server.

If you want to use hostname in the httpd.conf file, make sure you also have a corresponding entry in the /etc/hosts file for that hostname as shown below.
# vi /usr/local/apache2/conf/httpd.conf
ServerName dev-server

# vi /etc/hosts
127.0.0.1   dev-server localhost.localdomain localhost

Now when you start the apache again, you’ll not get the warning message anymore.
# service httpd stop
Stopping httpd:    [  OK  ]


原文出處:How to Fix AH00558 and AH00557 httpd apr_sockaddr_info_get() Error Message
內容圖示
url email imgsrc image code quote
樣本
bold italic underline linethrough   












 [詳情...]
validation picture

注意事項:
預覽不需輸入認證碼,僅真正發送文章時才會檢查驗證碼。
認證碼有效期10分鐘,若輸入資料超過10分鐘,請您備份內容後,重新整理本頁並貼回您的內容,再輸入驗證碼送出。

選項

Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|