Penned 7 months ago. It will take about 1:44 to read.
It was 72°F in San Diego, CA with a few clouds.
So, if you are a homebrew using fool like me, and have recently found that your apache install isn't working after a reboot, then this might be the article for you. I had this very problem this morning and after a little digging I discovered it was a permissions issue on a log file, of all things.
This might only be an issue for those of us who have set up SSL on our local machines, but I mean, that should be all of us, since we should be deploying all of our sites as SSL, and we need to make sure everything works as expected, right? RIGHT?
Anywhoo, the issue I found was that when I rebooted the machine the ownership of the ssl_request_log file was changed to root, which rendered it unreadable to apache during its startup sequence. A quick change of ownership to the correct account and group fixed the problem. I was able to restart apache with the homebrew services command and everything worked as expected.
If you aren't familiar with navigating things via the command line, follow these simple steps:
To do this, you need to use the chown command, like so:
sudo chown johnsmith:admin ssl_request_log
You'll be asked for a password, which is your account password for your mac, and then hopefully everything is fixed! To test, simply type in:
homebrew services restart httpd
And then reload your local project in your browser of choice. Hopefully that helps someone out there!