How to fix Apache2 could not reliably determine the server’s fully qualified domain name

How to fix Apache2 could not reliably determine the server’s fully qualified domain name

This warning normally indicates that your host’s file does not contain an FQDN (fully qualified domain name) not everyone will use an FQDN on their server so when restarting Apache you may see the below warning. This is not a critical error and in some cases, some users may not need to fix this error. Users who see this error on cPanel servers should follow this guide and add the tag as required to the httpd configuration file.

* Restarting web server apache2 AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using SERVER-IP. Set the 'ServerName' directive globally to suppress this message

You can fix this issue by adding a ServerName tag to the httpd.conf file or the apache2 conf file

How to fix Apache2 could not reliably determine the server’s fully qualified domain name on Ubuntu and Debian

echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

Restart Apache

Free cPanel VPS License

How to fix could not reliably determine the server’s fully qualified domain name on CentOS

nano /etc/httpd/conf/httpd.conf

Add the below tag on its own line

ServerName localhost

Save and close the file then restart apache

How to fix Apache2 could not reliably determine the server’s fully qualified domain name
23 4.8 96.52%
cPanel VPS Server

All About Linux cPanel Dedicated Servers VPS Servers

Select Language
We are currently updating our website. Please accept our apologies for any disruption you may see.
+