apache启动错误求助,大家看看
--------------------------------------------------------------------------------Redhat Linux Fedora 6 系统
启动Apache,提示错误:
httpd: apr_sockaddr_info_get() failed for server194.akdera.com
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
日志显示:
[Wed Jul 16 23:21:05 2008] [notice] caught SIGTERM, shutting down
[Wed Jul 16 23:21:15 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Jul 16 23:21:15 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jul 16 23:21:15 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Jul 16 23:21:15 2008] [notice] Digest: done
[Wed Jul 16 23:21:15 2008] [notice] Apache/2.2.6 (Unix) DAV/2 PHP/5.1.6 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations
这要如何处理?谢谢
看似正常运转了,但是程序无法运行 看configtest的提示操作,建议重新编译Apache 看下/etc/httpd/conf/httpd.conf 中ServerName的设置
还有/etc/hosts文件里hostname的设置 不知道 在啟動 httpd 時出現
Starting httpd: httpd: apr_sockaddr_info_get() failed for MYHOST
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName.
這個問題應該是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName 所以它會用主機上的名稱來取代,首先會去找 /etc/hosts 中有沒有主機的定義。
所以要解決這個問題可以設定 ServerName 或者在 /etc/hosts 中填入自己的主機名稱 MYHOST,像這樣:
>vi /etc/hosts
127.0.0.1 localhost.localdomain localhost MYHOST
或者
vi /etc/httpd/conf/httpd.conf
找到 ServerName
可能已經被註解了,這時只要將註解符號拿掉,再取個適當的名稱即可解決! httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
;***********************************************
vi /etc/httpd/conf/httpd.conf
查找ServerName 在IP地址那栏把前边的#去掉
重新启动APACHE service httpd restart 这个问题可以联系 QQ 733905 来帮助您,请将本帖地址发给他 路过,看看 把selinux禁用
重启
页:
[1]
