1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.

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
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. PHP/MySQL Basics
  5. Install and Enable PHP in Mac OS X

©2014 About.com. All rights reserved.