Apache could not reliably determine the server's fully qualified domain name

Apache could not reliably determine the server's fully qualified domain name

Updated: 14 Dec, 21 by Antoniy Yushkevych 1 Min

When attempting to install an Apache web server on Windows server you may face a very common error. You will encounter this problem when you will try to install and set up the latest versions of Apache. The error AH00558 requires you to set the 'ServerName' directive globally. 

Before fixing the problem here's a preview of the error that you will see on your screen.

AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::7077:eaf3:2440:24a1. Set the 'ServerName' directive globally to suppress this message

Apache Could not determine the server's qualified domain name

How to solve the Apache error AH00558:

To solve this we should determine the server name in Apache config file.

Apache config file is located in C:\Apache24\conf\httpd.conf

1. open C:\Apache24\conf\httpd.conf with notepad or any other text editor.

2. search for this line in config file "#ServerName www.example.com:80"

3. uncomment this line by removing # from the first of line and edit as below


4. save the file and exit

This will definitely solve the problem. You can check it yourself: run apache by running httpd.exe.


If it worked let us know your thoughts in the comments below. For the full guide on setting up Apache, check our "Full Apache installation guide" from here. 


Antoniy Yushkevych

Antoniy Yushkevych

Master of word when it comes to technology, internet and privacy. I'm also your usual guy that always aims for the best result and takes a skateboard to work. If you need me, you will find me at the office's Counter-Strike championships on Fridays or at a.yushkevych@monovm.com
user monovm


2021, Oct, 21

Thanks a bunch!!!! It worked perfectly

user monovm


2022, Jan, 22

Thanks a lot it worked

user monovm

Shana Doyle

2024, Jun, 24

Great post! Thanks for breaking down the steps to resolve the AH00558 error. I ran into this issue recently and your guide made it super easy to fix. Editing the httpd.conf file and setting the ServerName as you suggested did the trick. It's awesome that you included images and a clear walkthrough. Looking forward to exploring the full installation guide you mentioned!