1. Computing
Send to a Friend via Email

How to Install PHP on a Mac


1 of 4

Enable Apache on OS X
Before you can enable PHP on a Mac, you first have to enable Apache. Fortunately this is extremely easy. If you would like more information about Apache on the Mac you can read more here.

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.

See More About
Related Video
Basic PHP Syntax

©2014 About.com. All rights reserved.