Yosemite Update Screws Up Apache

Most people won’t notice. If you develop locally on your Mac, though, it’s a pain in the butt.

First you have to restart it after upgrading from Mavericks. That’s easy enough. Just go to terminal and sudo apachectl start.

But then, on both of my machines, I went to localhost and got nothing.

I browsed around a lot. Nothing I found seemed to work. In my case, it took resetting the PRAM.

After I reset PRAM, I also checked to make sure the new httpd.conf file (yes, that got updated, too) was configured the way I wanted it. Then sudo apachectl restart and, presto!

Good luck!