Hi guys,
Did you faced the this issue while configuring the apache on your server, then you are on the right totorial,
Error: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using example.com. Set the 'ServerName' directive globally to suppress this message
Solution:
you need to set the Global ServerName Directive for your apache configuration, apache use this map incoming HTTP requests to an IP address
Just follow the step,
1) IF you are on ubuntu OS
then open file apache.conf on path "/etc/apache2/apache2.conf"
2) Edit the file and line to the end of the file:
ServerName 127.0.0.1
Or IF your are on centos server
1) then open file httpd.conf on path "/etc/httpd/conf/httpd.conf"
2) Edit the file and line to the end of the file:
ServerName 127.0.0.1
3) restart the apache and run
sudo apachectl configtest
if you find output like below then you are done, else comment to help you
Output
Syntax OK
Thanks.
- Log in to post comments