View Full Version : [ubuntu] Apache 2 screen notice
cantthinkofanickname
January 5th, 2009, 06:12 AM
During bootup I get the line:
"Apache(2) Could not reliably determine the server's fully qualified domain name using 192.168.0.2 for server name."
Is this something I should correct (and if so how)?
dhcp is from router and config. is "static" in interfaces file.
bluefrog
January 5th, 2009, 06:31 AM
it is just telling you the /etc/hosts (or hostname, not sure...) do not contain a FQDN for your IP.
it doesn't matter and won't prevent apache from functioning.
cantthinkofanickname
January 5th, 2009, 06:35 AM
I use my server on two networks 192.168.0.x and 192.168.1.x. Maybe if I put the fqdn in (I assume this is the servername) this would be better. Is this the case and how should I do it?
cdenley
January 5th, 2009, 10:58 AM
I use my server on two networks 192.168.0.x and 192.168.1.x. Maybe if I put the fqdn in (I assume this is the servername) this would be better. Is this the case and how should I do it?
FQDN = fully qualified domain name
http://en.wikipedia.org/wiki/FQDN
I don't think it would cause any problems, but you can add this line to /etc/hosts
192.168.0.2 www.myserver.com
then edit /etc/hostname
www.myserver.com
then run
sudo hostname www.myserver.com
Replace "www.myserver.com" with your correct FQDN, of course.
Iowan
January 5th, 2009, 10:23 PM
This (https://help.ubuntu.com/community/ApacheMySQLPHP#Troubleshooting%20Apache) help page offers the following suggestion:If you get this error:
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
then use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to create a new file,
sudo nano /etc/apache2/conf.d/fqdn
or
gksu "gedit /etc/apache2/conf.d/fqdn"
then add
ServerName localhost
to the file and save. This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
Personally, I like the previous suggestions better.
cantthinkofanickname
January 6th, 2009, 05:39 AM
Thanks I have done that. As my server is called "acdorserver1" should this be the name?
cdenley
January 6th, 2009, 09:36 AM
Thanks I have done that. As my server is called "acdorserver1" should this be the name?
Well, that is not a FQDN. See my previous post.
cantthinkofanickname
January 6th, 2009, 10:53 AM
Does that mean I can call my server www.acdorserver1.com? I thought that was to do with the internet. Is there something to read up in this context?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.