Reset Apache configuration to original state in Sonoma 14.6.1

I had Apache running on http://localhost/ according to etresoft's excellent guide.

While trying to get a Virtual Host running, I probably messed up my Apache configuration and cannot get back to localhost state that worked before. This is the error message I get when trying to start it:


$ sudo apachectl -k graceful

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

httpd not running, trying to start

(49)Can't assign requested address: AH00072: make_sock: could not bind to address 192.168.2.104:80

no listening sockets available, shutting down

AH00015: Unable to open logs

MacBook Pro 15″, macOS 10.15

Posted on Oct 4, 2024 12:12 PM

Reply
1 reply

Oct 4, 2024 12:34 PM in response to fhlconsult

I’m not certain what the error means but it looks like your computer IP address is.101 and you’re trying to bind to .104.

All of the original configuration files should be in the originals folder and I can’t remember if that’s inside of extras or separately inside the apache2 folder. Just copy the originals and paste them to replace the ones you altered.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Reset Apache configuration to original state in Sonoma 14.6.1

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.