Network: Apache: How to run on a standalone machine

(last edit: 2001-03-18) You're trying to start apache on a machine without an internet connection, it won't start and in the /var/log/http-error.log file the following error appears: [Wed Feb 2 16:58:09 2000] [alert] mod_unique_id: unable to gethostbyname('your.hostename") This is what happens: Apache tries to resolve your local hostname. Resolving means (simple explenation) that your hostname is looked up in the DNS server and its ip address wil be send back to your server. So lets say that you've specified the hostname 'freebsd.lowlife.org' in your '/etc/rc.conf' (you can check your hostname by typing 'hostname' on the commandline). Apache will check this hostname when it is started and wil generate the error because there is no internet connection and thus no dns server and thus no resolve. You can solve this by changing your hostname to 127.0.0.x or 192.168.0.x (private space address). You can do this by typing 'hostname 127.0.0.1' on the commandline or you can alter it in the your '/etc/rc.conf' file (change the value of the var 'hostname').

Click here to go back to the index.