Q: Get error when using apache
So I am running Mac El Capitan. I used to be able to use Apache web server on this mac in the same os but how ever when I try recently to use appache I get this error
httpd: Syntax error on line 66 of /private/etc/apache2/httpd.conf: Cannot load libexec/apache2/mod_authn_file.so into server: dlopen(/Users/keeffefamily/Sites/libexec/apache2/mod_authn_file.so, 10): image not found
And when I try to start it looks as if it has worked but when I go to http://localhost/ nothing loads up
Specs:
2.9 GHz Intel Core i5
8 GB 1600 MHz DDR3
OS X El Capitan 10.11.1
NVIDIA GeForce GT 750M 1024 MB
iMac, OS X El Capitan (10.11.1)
Posted on Jun 4, 2016 6:56 PM
It looks like you changed line 31 in that file. It should be this:
ServerRoot "/usr"
There is no graphical interface to Apache in recent versions of OS X. If you want to use it, I suggest that you either install OS X Server from the App Store, or else use a third-party application. I don't have a specific recommendation for the latter.
Posted on Jun 5, 2016 8:00 AM