reinstall apache or fix it

I was trying to enable php, mysql, apache on my macbook pro running yosemite. I followed this guide but it doesn't run. What's wrong: Setting up a local web server on a Mac

Please help.....I get an error saying http://localhost


Also, I asked my Question here: http://apple.stackexchange.com/questions/173368/cant-access-apache-powered-websi te-at-localhostbut couldn't get much of luck. Lastly, I did a configtest and found that there is some problem in apache inself. Please help me to fix it or suggest me way to completely remove it and do a fresh installation.

Abhimanyus-MacBook-Pro:log abhimanyuaryan$ sudo apachectl configtest

httpd: Syntax error on line 59 of /private/etc/apache2/httpd.conf: Cannot load libexec/apache2/mod_authn_default.so into server: dlopen(/usr/libexec/apache2/mod_authn_default.so, 10): image not found

Posted on Feb 20, 2015 4:38 PM

Reply
2 replies

Feb 26, 2015 3:50 AM in response to AbhimanyuAryan

I have been having similar problems, in that I would get an error from...


sudo apachectl configtest


"Could not reliably determine the server's fully qualified domain name, using <yourComputerName>.local. Set the 'ServerName' directive globally to suppress this message.


I resolved the issue by ensuring that the Server name <YourComputerName> appears in the /etc/apache2/httpd.conf file i.e


..

ServerName <YourComputerName>

..


and restarting apache using...


sudo apachectl restart


Then Setting up a local web server on OS X on Yosemite 10.10.2 worked.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

reinstall apache or fix it

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.