Search code examples
phpapache

Apache: Errors AH00557 and AH00558 don't get away and PHP not working


1.) If I start apache I get these errors:

AH00557: httpd: apr_sockaddr_info_get() failed for Macintosh-3.local

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

I have already set ServerName to localhost in the httpd.conf file. But unfortunately the errors don't get away.

2.) I have removed the # before the PHP module in the httpd.conf file. But if I load a .php file it just shows me the code.


Solution

  • I have fixed it myself by reinstalling everything :)