Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 10.249.163.138 for ServerName

Sir ,
I am trying to install to install LE certificate for the last one month.
Now I got generated the certificate from sslforfree.com.
I put the certificates files in /etc/tls/pki/cert and private folder as my server on apache 2.2
on RHEL 6.7. and virtual host entries in ssl.conf.
Now when I restated the httpd I got the message
“Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using 10.249.163.138 for ServerName”
As I was using my migration server was on 10.249.163.138 previously.
now website is on 164.100.163.230.
etc/host entry is
127.0.0.1 localhost localhost.localdomain localhost4 lcalhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.249.79.229 rhn_whsp.nic.in rhn_whsp
10.249.163.138 rj01rjc-web # NIC

what should I do now.please help.
Regards
upendra

Hi @upendrajpr

starts the webserver? If yes, you may ignore the problem.

If no, what says

apachectl -S
or
httpd -S

Sir,
I still got the message

httpd: Could not reliably determine the server’s fully qualified domain name, using 10.249.163.138 for ServerName
VirtualHost configuration:
164.100.163.230:443 rtijaipur.cag.gov.in (/etc/httpd/conf.d/ssl.conf:75)
Syntax OK

Can you show us how your ServerName directive is configured in httpd.conf (or probably) default-server.conf
A fully qualified domain name is not an IP address.
It should be rtijaipur.cag.gov.in ...or in some cases localhost.
And your virtual host declaration could be as simple as <VirtualHost *:443>......
Hope this helps.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.