Cannot connect to server "localhost"? [closed]

From the terminal curl http://localhost || echo $? might be a good place to start to determine if this is a resource issue, routing issue or apache issue.

You'll either get back a valid http response or an error that may lead the way to knowing why your other web clients are not connecting to localhost on port 80.