Title: How To Fix: Could not determine the server's fully qualified domain name
Description: how to fix could not determine the servers fully qualified domain name Linux Hosting
Tags: how, to, fix, could, not, determine, the, servers, fully, qualified, domain, name
Info: This Post Has Been Viewed 115744 Times SinceThu Jul 20, 2006 9:44 am Author toyer With 46 Replies #23
How To Fix: Could not determine the server's fully qualified domain name
I am getting this error everytime I try to restart my apache server. i have a dedicated server for my wallpaper website and im able to login to my fedora/redhat server through my ssh shell, but i get this when i try to restart my server for some reason i can't figure and my wallpaper website is down. this is what i get when i execute the commnad:
Code:Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
how can i fix this?
#1
Rajesh:
6 seconds ago
#182262
Rajesh Thu May 03, 2012 8:17 pm
use this in UR httpd.conf file ServerName 127.0.0.1
#2
saly:
3 months ago
#173625
saly Tue Jan 10, 2012 8:21 pm
Pls can you list what command should be in hosts file I have trixbox with cent5.5 operating system
#3
winzter143:
6 months ago
#167662
winzter143 Mon Oct 03, 2011 7:54 pm
Whats wrong ip? the loppback ip(127.0.0.1)?
#4
casi:
11 months ago
#156596
casi Mon May 09, 2011 6:39 am
you shouldn't put any name that you want, depending on your DNS settings, it will not route traffic correctly.
#5
apple23:
11 months ago
#156589
apple23 Mon May 09, 2011 2:21 am
Hello, I have a question, Do I have to put my hostname in ServerName or I can put any name that I want?
#6
rassloff:
1 year ago
#155701
rassloff Wed Apr 20, 2011 3:36 am
127.0.0.1 localhost
123.123.123.123 hostname.domain.de hostname
ray Thu Jan 27, 2011 9:00 am
thanks. cool!
#8
Phil:
1 year ago
#149807
Phil Sat Dec 25, 2010 10:41 am
The fix is to edit the conf file and add in the ServerName setting (as the error message requests). In other words,
sudo vi /etc/apache2/httpd.conf
by adding the following string:,
# ServerName is to be specified to avoid warning during reload
ServerName MYSERVER
#9
Miture:
1 year ago
#143634
Miture Sat Sep 04, 2010 9:46 pm
I had the wrong IP address in my /etc/hosts file, removing that fixed it for me.
#10
sekhar:
1 year ago
#142070
sekhar Sun Aug 15, 2010 11:59 pm
just go to httpd.conf file
open it and add a new line i.e.
servername your-server-name
save it and restart the httpd service
#11
Vlad:
1 year ago
#140917
Vlad Tue Aug 03, 2010 8:39 am
add ServerName YOURSERVERNAME to httpd.conf
add 127.0.0.1 YOURSERVERNAME SHORTNAME to /etc/hosts
restart apache
#12
NISHANT:
1 year ago
#140365
NISHANT Tue Jul 27, 2010 10:35 pm
Hi
uncoment or add following line in httpd.conf
ServerName example dot com :80
#13
James:
1 year ago
#139675
James Wed Jul 21, 2010 6:31 am
In your /etc/hosts file make sure the fully qualified domain name is listed first. i.e.:
127.0.0.1 localhost.localdomain localhost
NOT
127.0.0.1 localhost localhost.localdomain
#14
Kiran:
2 years ago
#131063
Kiran Fri Apr 02, 2010 4:06 am
Hi
Please check whether you have the network part configure perfectly in /etc/hosts, /etc/sysconfig/network . You should provided your ip address hostname.domainname hostname in /etc/hosts.
Kiran
#15
rahma:
2 years ago
#129169
rahma Tue Mar 02, 2010 1:06 am
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
I want the answer now
#16
Mike:
2 years ago
#126335
Mike Wed Jan 20, 2010 11:18 am
Excellent! this works great on fedora 12!
#17
Abbas:
2 years ago
#114583
Abbas Thu Sep 03, 2009 12:34 am
i had a similar problem
i had originally setup apache with php 5.3.0 and later had gone on to change the php version to php 5.2.10. after the transition i could not restart the server, even after correctly specifying the php-config path and other intricacies.
i finally got apache to restart by just renaming the php 5.3.0 folder to something else :)
#18
bobkins:
2 years ago
#107617
bobkins Sat Jun 27, 2009 11:10 pm
good! that works for me. thanks!!!
#19
Marouane:
3 years ago
#100597
Marouane Fri Apr 17, 2009 6:25 am
sorry guys it's servername "hostname" not nameserver "hostname". i had the same problem and after adding that line in the end of the file i don't receive that message when i reload or restart apache2. good luck
#20
Marouane:
3 years ago
#100596
Marouane Fri Apr 17, 2009 6:19 am
hello, you can fix that by adding nameserver "hostname" in /etc/apache2/apache2.conf
hostname is the name of your machine.