First off… Homebrew and Apache on the Mac OS are SEPARATE from the default Mac OS Apache installation. You can edit files and change configs in terminal until you’re blue in the face, and see no changes. That’s because you’re probably installing or editing one, while checking the version or functionality of the other.
Homebrew Terminal Commands
Command list here: https://docs.brew.sh/Manpage
Install apache:
bin brew install httpd
Start apache (httpd):
brew services start httpd
More HTTPD commands:
brew services stop httpd
brew services restart httpd
Set PHP version
Uncomment and add this to your httpd.conf:
LoadModule php7_module /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so
Above example is obviously for PHP7.4
Apache error logs:
/usr/local/var/log/httpd/error_log
/usr/local/var/log/httpd/access_log