Monday, October 5, 2009

[Mac] Web Sharing/Default Apache not working

On Mac OS X (10.5.x and 10.6.x) systems with MacCleanse (1.4.x) if the Archived logs are cleaned the following folder is deleted:

/private/var/log/apache2

This results the "Web Sharing" feature to fail, as Apache Web Server fails to start

To make Apache work again just create that folder again
Steps to create the folder:
1: Open the Terminal (It is in /Applications/Utilities/Terminal)
2:Type the command:

sudo mkdir /private/var/log/apache2


3: When prompted for password, type your system password

It should start working again. If it doesn't there might be another problem. Check your console logs in "/Applications/Utilities/Console"