Problem starting Apache 2.2.0 Freebsd

    [多云 June 15, 2008 16:04 | by ]
冷漠PS:今天一直在架设 FreeBSD+zend+php+Mysql+phpmyadmin ,但是在编译 apache 的时候总是出错,httpd 总是起不来,
出现如下错误:
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Stopping apache22.
Waiting for PIDS: 11416.
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Starting apache22.
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

baidu 搜索了很多,但是都没解决,于是用 google 在国外开始搜索,终于找到了解决办法..特放上来,记录下,我想很多都会遇到这样的问题的..

下面附上解决办法:
Just fix your hosts file and httpd conf

1. Edit hosts file :
[root@pisangraja ~]# hostname
pisangraja.jc
[root@pisangraja ~]# vi /etc/hosts

::1                     localhost
127.0.0.1               localhost
192.168.12.200          pisangraja
192.168.12.200          pisangraja.jc

2. Edit httpd conf
[root@pisangraja ~]# vi /usr/local/etc/apache22/httpd.conf
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn’t have a registered DNS name, enter its IP address here.
#
ServerName www.pisangraja.jc:80

[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
apache22 not running? (check /var/run/httpd.pid).
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.


最后重启 apache 即可··
Technology | Comments(1) | Trackbacks(0) | Reads(11389)
dombaldim
May 17, 2009 02:43
kill after this errroor i wonna fukc my girl
Pages: 1/1 First page 1 Final page
Add a comment
Emots
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
Enable HTML
Enable UBB
Enable Emots
Hidden
Nickname   Password   Optional
Site URI   Email   [Register]
               

Security code Case insensitive