|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|||
ServerName
Hello
tape the command /usr/local/sbin/apachectl restart Code:
sd-12706# /usr/local/sbin/apachectl restart httpd: apr_sockaddr_info_get() failed for sd-12706 httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName httpd not running, trying to start [Fri Jan 16 20:26:31 2009] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter sd-12706# |
|
|||
Try this:
Code:
ping -c1 `hostname` >/dev/null && echo "success" || echo "You dont have your hostname in /etc/hosts" |
|
|||
hello
By defaut in my file hosts (127.0.0.1 localhost localhost.my.domain) I have just looked in my httpd.conf file at ServerName 12.34.56.78:80 Code:
sd-12706# vi /etc/hosts # $FreeBSD: src/etc/hosts,v 1.16 2003/01/28 21:29:23 dbaker Exp $ # # Host Database # # This file should contain the addresses and aliases for local hosts that # share this file. Replace 'my.domain' below with the domainname of your # machine. # # In the presence of the domain name service or NIS, this file may # not be consulted at all; see /etc/nsswitch.conf for the resolution order. # # ::1 localhost localhost.my.domain 127.0.0.1 localhost localhost.my.domain # # Imaginary network. #10.0.0.2 myname.my.domain myname #10.0.0.3 myfriend.my.domain myfriend # # According to RFC 1918, you can use the following IP networks for # private nets which will never be connected to the Internet: # # 10.0.0.0 - 10.255.255.255 /etc/hosts: unmodified: line 1 Last edited by Nk2Network; 16th January 2009 at 08:51 PM. |
|
|||
Next time please use 'I typed" instead of 'tape'
What is the output of? Code:
$ hostname Code:
$ dig $(hostname)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Hello
Hostname: sd-12706 Adresse IP 1: 88.191.63.15 Code:
sd-12706# dig $ sd-12706 ; <<>> DiG 9.4.2 <<>> $ sd-12706 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 37158 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;\$. IN A ;; AUTHORITY SECTION: . 10800 IN SOA a.root-servers.net. nstld.verisi gn-grs.com. 2009011601 1800 900 604800 86400 ;; Query time: 11 msec ;; SERVER: 88.191.254.60#53(88.191.254.60) ;; WHEN: Fri Jan 16 21:54:14 2009 ;; MSG SIZE rcvd: 94 ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 59926 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;sd-12706. IN A ;; AUTHORITY SECTION: . 10800 IN SOA a.root-servers.net. nstld.verisi gn-grs.com. 2009011601 1800 900 604800 86400 ;; Query time: 10 msec ;; SERVER: 88.191.254.60#53(88.191.254.60) ;; WHEN: Fri Jan 16 21:54:14 2009 ;; MSG SIZE rcvd: 101 sd-12706# |
|
|||
The problem is that you don't have 'sd-12706' in /etc/hosts as localhost. Append that hostname to the end of the '::1' and '127.0.0.1' address lines.
|
|
|||
hello,
adds as like this Code:
::1 localhost localhost.my.domain sd-12706 127.0.0.1 localhost localhost.my.domain sd-12706 |
Thread Tools | |
Display Modes | |
|
|