Dragon12
April 3rd, 2006, 18:56
I've been tinkering with getting Apache-1.3.33_2 up and running on an internal network using FBSD 6.0.

I followed the directions that is listed in the FreeBSD Handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-apache.html). The only things I've changed 2 lines in the httpd.conf file.

"www.example.com" to "127.0.0.1" after ServerName
&
"you@your.address" to "Dragon@BlackDragon" after ServerAdmin.

/etc/rc.conf has "apache_enable="YES""
/etc/hosts has:
::1 localhost localhost.BlackDragon
127.0.0.1 localhost localhost.BlackDragon

I try to start up the server with: "/usr/local/sbin/apachectl start" as root and I get the error message:

[Mon Apr 3 15:25:57 2006] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/sbin/apachectl start: httpd could not be started

Can anyone tell me what I did wrong?
Is there anymore info that I need to include?

Any input would be appreciated

Thanks,

Dragon12

Kernel_Killer
April 3rd, 2006, 20:48
Try putting your server name in the /etc/hosts file. For example:

10.0.0.123 www www.mynewsite.com

Dragon12
April 3rd, 2006, 20:59
/etc/hosts has:
::1 localhost localhost.BlackDragon
127.0.0.1 localhost localhost.BlackDragon

I have this in my /etc/hosts file already, is this correct? Or do I need to remove the "localhost localhost." from those lines in the /etc/hosts file?

Thanks,
Dragon12
:silly:

Kernel_Killer
April 3rd, 2006, 22:44
What is the host name you are trying to use for your server? You want to make another entry in the hosts file that isn't localhost, and not the loopback address.

Dragon12
April 3rd, 2006, 22:58
@ Kernel_Killer,

I have been using "BlackDragon" as my host name (It's what I'm using in my /etc/rc.conf file).

# Imaginary network.
#10.0.0.2 myname.my.domain myname
#10.0.0.3 myfriend.my.domain myfriend

Is this the portion of the /etc/hosts file that I need to edit? :confused:

Thanks for your patience,

Dragon12

Kernel_Killer
April 4th, 2006, 01:59
Yes, just anywhere really. For instance:

127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
172.16.1.1 www www.blackdragon.com


If you set a hostname in your httpd.conf, make sure you set that one in your hosts, then Apache can look it up. You don't have to do it for every host you set in apache, just the main server host.

Dragon12
April 4th, 2006, 02:34
ROCKIN! That did the trick! Thanks for the help Kernel_Killer!

:biggrin: