When i install httpd, i can't start this

Hello. I i use brew install httpd.
Now, when i try start sudo /usr/local/bin/apachectl restart
I get error:

httpd: Syntax error on line 78 of /usr/local/etc/httpd/httpd.conf: Cannot load lib/httpd/modules/mod_authz_host.so into server: dlopen(/usr/lib/httpd/modules/mod_authz_host.so, 10): image not found

If i use cd lib/httpd/modules/ - get: -bash: cd: /usr/lib/httpd/modules/: No such file or directory

Why i can’t start brew apache ?

Did you try brew service start httpd?

This command can run, but why i get errror when try apachectl -k restart ?

It seems to be an issue with your configuration looking in an odd location for libraries. But brew services is the recommended way to start any services in homebrew so I wouldn’t recommend spending a lot of time debugging a non-standard configuration.