1.) Click the 'System Preferences' icon in the Dock.
2.) Click the 'Sharing' icon in the Internet & Network section of the System Preferences window.
3.) Place a check mark in the ‘Web Sharing’ box.
That's it! If you want to test if it worked, point your browser to http://localhost/ and you should see the standard Apache test page.



