Bookmark and Share

PHP on Mac OS X 10.5 Leopard

Posted: Saturday, May 2nd, 2009 at 12:25 pmUpdated: Sunday, May 3rd, 2009 at 8:53 am

This article will focus on Mac OS X 10.5 Leopard. I have no access to earlier versions of Mac OS X, so I’m afraid I can’t help you much more than providing this link.

There are many ways to enable MAMP (Mac Apache MySQL PHP) stack, but the best way, I think, is to use one of the two I’m about to describe below. On this page, I’ll describe MAMP stack using MAMP application bundle. On the next page, I’ll describe another way using Apache and PHP that are built-in with Mac OS X Leopard.

The easy way

There’s no doubt that the easiest way is to simply download MAMP, extract it to Applications and start programming. Here’s a quick start to using MAMP bundle application.

  1. Download MAMP from here. At the time of this writing, it was at version 1.7.2.
  2. Double click the .dmg file mamp_172_icon
  3. Drag MAMP to applications folder.
    mamp_172_disk
  4. Then on Finder, navigate to Go -> Applications. Then double click on MAMP directory. Then double click on MAMP icon.mamp_172_app
  5. You should then see the MAMP console and MAMP will also open start page. mamp_172_console
  6. You’re basically all set now. A few things that you may want to change is the default MySQL port to 3306 and the location of document root. Both can be changed by clicking on preferences button.

That’s it! Didn’t I tell you it was the easy way? Next, I’ll discuss how to enable Apache and PHP that’s already built-in with your Mac OS X.

Pages: 1 2

Leave a Reply