Search code examples
apachemacos-sierra

macOS Sierra 10.12.2 Apache not working


I've upgraded to the current version of macOS. I want to work with Apache. Well, my problem is, that when I try to access localhost with or without ~Username, I get an error message saying ERR_CONNECTION_REFUSED on Chrome or "Can't open Page" on Safari. Apache is running and apachectl configtest says "Syntax OK".

I placed the current version of phpMyAdmin into /Library/WebServer/Documents and tried to access it, same problem.

I followed the steps in this guide without a solution for me Apache localhost/~username/ not working

So does anyone know what problem I'm facing? I'm clueless right now.


Solution

  • I had the same outcomes as above, using virtual hosts though, and after updating to macos 10.12.2 was receiving ERR_CONNECTION_REFUSED.

    My original setup is based on the excellent posts here: https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc

    And as such, because I'm using Homebrew, all I needed to do was also run brew upgrade on CLI followed by sudo apachectl restart and I'm back up and running.