HTTPD stopped starting automatically on osx

dhtmldhtml Posts: 1,019

tony:~ dhtml$ brew install httpd

Updating Homebrew...

^CWarning: httpd 2.4.43 is already installed and up-to-date

To reinstall 2.4.43, run `brew reinstall httpd`

tony:~ dhtml$ apachectl -v

Server version: Apache/2.4.43 (Unix)

Server built:  Apr 4 2020 01:58:36

tony:~ dhtml$ brew reinstall httpd

==> Downloading https://homebrew.bintray.com/bottles/httpd-2.4.43.catalina.bottl

Already downloaded: /Users/tony/Library/Caches/Homebrew/downloads/90b16197dbf8c1524d7ba14ce24b3a95388f25e623100a74270c916caecf4973--httpd-2.4.43.catalina.bottle.tar.gz

==> Reinstalling httpd 

==> Pouring httpd-2.4.43.catalina.bottle.tar.gz

==> Caveats

DocumentRoot is /usr/local/var/www.


The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in

/usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.


To have launchd start httpd now and restart at login:

 brew services start httpd

Or, if you don't want/need a background service you can just run:

 apachectl start

==> Summary

🍺 /usr/local/Cellar/httpd/2.4.43: 1,658 files, 27.9MB

tony:~ dhtml$ brew services start httpd

Service `httpd` already started, use `brew services restart httpd` to restart.

tony:~ dhtml$ brew services restart httpd

Stopping `httpd`... (might take a while)

==> Successfully stopped `httpd` (label: homebrew.mxcl.httpd)

==> Successfully started `httpd` (label: homebrew.mxcl.httpd)

tony:~ dhtml$ sudo brew services start apache2

Warning: Taking root:admin ownership of some httpd paths:

 /usr/local/Cellar/httpd/2.4.43/bin

 /usr/local/Cellar/httpd/2.4.43/bin/httpd

 /usr/local/opt/httpd

 /usr/local/opt/httpd/bin

 /usr/local/var/homebrew/linked/httpd

This will require manual removal of these paths using `sudo rm` on

brew upgrade/reinstall/uninstall.

Warning: httpd must be run as non-root to start at user login!

==> Successfully started `httpd` (label: homebrew.mxcl.httpd)

This seems to stop it, otherwise, I have to do

$ sudo apachectl start

Each time I start pc.

Sign In or Register to comment.