LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Could not reliably determine FQDM - CentOS issue (https://www.linuxquestions.org/questions/linux-server-73/could-not-reliably-determine-fqdm-centos-issue-4175436270/)

nicky77 11-08-2012 09:56 AM

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

bathory 11-08-2012 11:37 AM

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

Habitual 11-08-2012 01:02 PM

"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.


All times are GMT -5. The time now is 07:10 AM.