1. Computing

How to Install PHP on a Mac

By

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. Computing
  3. PHP / MySQL
  4. PHP/MySQL Basics
  5. Install PHP on a Mac - Enable PHP in Mac OS X

©2014 About.com. All rights reserved.