If you don’t have httpd.conf in folder /etc/apache2, you should have apache2.conf – simply add:
ServerName localhost
Then restart the apache2 service.
If you don’t have httpd.conf in folder /etc/apache2, you should have apache2.conf – simply add:
ServerName localhost
Then restart the apache2 service.