LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-08-2012, 09:56 AM   #1
nicky77
LQ Newbie
 
Registered: Mar 2010
Posts: 16

Rep: Reputation: 0
Could not reliably determine FQDM - CentOS issue


Hi, probably a simple fix but can't figure it out. Just setting up a CentOS server and trying to configure Apache. I have added the following to /etc/httpd/conf/httpd.conf:

Code:
# Additions
NameVirtualHost *:80
Include /etc/httpd/sites-enabled/
When I restart Apache, I get this:
Code:
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 2a00:1a48:xxxx:xxx:xxx:xxxx:ff08:2057 for ServerName
Checking /etc/hosts and I have this:
Code:
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
x.x.xx.xxx     myserver-staging
xx.xxx.xxx.xx   myserver-staging
2a00:1a48:xxxx:xxx:xxx:xxxx:ff08:2057 myserver-staging
If I try to set ServerName myserver-staging in httpd.conf, restarting Apache fails without any error output.

Any ideas what I'm doing wrong here? Many thanks
 
Old 11-08-2012, 11:37 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Quote:
If I try to set ServerName myserver-staging in httpd.conf, restarting Apache fails without any error output.
It's not possible. unless you have a typo in your syntax. You can run
Code:
httpd -t
to check the config file(s)

BTW since you run Centos, there is no /etc/httpd/sites-enabled/ directory

Regards
 
Old 11-08-2012, 01:02 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
"Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name,..." is not fatal last time I checked. Lots of my apache frontends tell me this and apache works just fine.

Does localhost work?

Code:
pidof apache or 
pidof apache2 or
pidof httpd or
telnet localhost 80
should tell you if apache is indeed running.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2: "Could not reliably determine" gibberish as IP address! EschewPanache Linux - Networking 2 08-20-2011 08:32 AM
apache2: Could not reliably determine the server's fully qualified domain name JosephS Linux - Server 1 10-25-2010 12:07 AM
LAMP/Apache problem - Could not reliably determine the server's fully qualified D/N kaos_king Linux - Newbie 10 06-12-2010 07:15 AM
"Could not reliably determine the server's fully qualified domain name, using 127.0. amritpalpathak Linux - Software 2 03-20-2010 02:36 PM
FQDM and /etc/hosts issues strimp099 Linux - Networking 2 05-22-2005 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration