Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Get localhost webserver working in MacOS 27?

Upgraded to MacOS 27.0.1 Golden Gate and my localhost: webserver stopped working. Tried restarting Apache, tried reinstalling Apache, poked around in the config files, nothing. “Unable to connect. Firefox can’t connect to the server at localhost”

Chatted with support and neither of the people i spoke with even knew that Macs could be webservers—no clue what localhost: was. Help?


And geez, if you try to type in a title in this form, you can type ONE character before it switches focus to this box.

10 replies

For quite a few years now, after an upgrade, system configuration files are moved into the /Users/Shared/Recovered items folder. You should check there to see if your former web server configuration files were moved into that directory and update the system config files as appropriate

I also found that Homebrew's Apache stopped starting after I updated to macOS 27.

Running `brew upgrade httpd` didn't fix it. However, after I subsequently ran `brew upgrade php`, it started working again.

I’m not sure if the cause was the same in your case, but I thought I’d share this for reference.

Did some more poking and killed a duplicate PID that was running. restarted Apache and holy cow it works. Thanks all!

The standard command issued in Terminal works fine for me in macOS 27:


sudo apachectl start



Completey uninstalled HomeBrew. Restarted. Checked that the Apple version of Apache is running.


bug@BlackBug ~ % apachectl -t -D DUMP_INCLUDES

Included configuration files:

(*) /private/etc/apache2/httpd.conf

(514) /private/etc/apache2/extra/httpd-mpm.conf

(520) /private/etc/apache2/extra/httpd-autoindex.conf

(526) /private/etc/apache2/extra/httpd-userdir.conf

(16) /private/etc/apache2/users/bug.conf

(560) /private/etc/apache2/other/mpm.conf

(560) /private/etc/apache2/other/php7.conf

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


Still no connection at localhost:


rrrgh....



I DID have HomeBrew installed. Uninstalled it, restarted, then went through your list, but now i get this:


apachectl configtest

/usr/local/bin/apachectl: line 91: /usr/local/opt/httpd/bin/httpd: Bad CPU type in executable


Might this be because this is piling on from an old install from many years ago? Is this a “reinstall MacOS” kind of error or would an Apache reinstall fix it?

Puttyhead wrote:
I DID have HomeBrew installed.

So sorry to hear that.


Uninstalled it, restarted, then went through your list, but now i get this:

Sounds like Homebrew is one of those apps that can't be uninstalled. Or at least, uninstallation doesn't undo any of its configuration changes.


Might this be because this is piling on from an old install from many years ago?

Nope. Just Homebrew.


Is this a “reinstall MacOS” kind of error or would an Apache reinstall fix it?

If you can track down all the changes that Homebrew made and undo them, that would fix it. For that, you'll have to contact your friendly Homebrew tech support representative at the Homebrew call centre.

etresoft wrote: ... you'll have to contact your friendly Homebrew tech support representative at the Homebrew call centre.


Operators are standing by 😂


In case you didn't already know it Homebrew is a hot mess. You can find some similarly beleaguered fellow travelers here:


https://github.com/orgs/Homebrew/discussions


By the way I have a Github account, but gave up trying to log in a few months ago because I failed to prove I'm a human despite repeated attempts over a half hour of my life that I'll never get back.


But I just tried logging in just now and got in. Not sure I want to though. Github is also a hot mess.

Thanks, ugh!