ErrorLog “/private/var/log/apache2/error_log”
Now if the directory apache2 does not exist in /private/var/log/, apache will fail to start without giving you much of an error message. To correct this, in terminal type:
sudo mkdir /private/var/log/apache2
Enter your admin password and restart apache either in System Preferences=>Sharing=>Web Sharing or in terminal by typing:
sudo apachectl restart
Once this is done, enter your web address in the web browser and you should see your pages load. Hope this helps!
View Comments (2)
THANK YOU SO MUCH! I tried so many things and I felt stupid but that was a pretty obscure error so I don't feel so bad now
Glad that we could help you out! I wrestled with this one for quite some time one day before finding the issue. Let me know if you run into anymore problems and thanks for stopping by!