up vote 0 down vote favorite
share [g+] share [fb]

I want to use PHP on my Mac.

If I were using Windows I would install WAMP server, but I'm not familiar with how to use PHP on Mac OS X. What kind of software should I use for installing/running my php developed sites locally on my Mac?

link|improve this question

feedback

3 Answers

up vote 5 down vote accepted

MAMP is the equivalent of WAMP for Mac OS X.

link|improve this answer
I would give you +5, if i could. – Spark Oct 17 '09 at 22:42
MAMP would be my first choice. Excellent program. – Josh K Oct 18 '09 at 5:25
feedback

PHP comes pre-installed in Mac OS X. It's not perfect for everyone (as it may or may not have the extensions you wish). To enable it (PHP 5.3 on Snow Leopard) you need to enable it in Apache 2's configuration file (Uncomment the php5.so module).

Applications such as MAMP provide a separate installation of the *AMP stack that work on Mac OS X.

Alternatively if you want to install other versions of PHP on your Mac you can either use MacPorts or compile it yourself.

From the way you are wording your question it sounds like you are not looking for how to use PHP on Mac OS X but how to set up the web development stack (Apache, MySQL, PHP) on your Mac.

link|improve this answer
Hey ! A great thing. On which version of Snow Leopard? A great Answer. You are aware of most of the things. – Spark Oct 17 '09 at 23:48
1  
Both Server and Client come with PHP 5.3. All versions of Mac OS X came with versions as well (Leopard had PHP 5.2, Tiger 4.3, even older versions not worth mentioning) – Chealion Oct 17 '09 at 23:56
feedback

Marc Liyanage very kindly maintains a current build of PHP for Mac OS X at his website: http://www.entropy.ch/software/macosx/php/

Go there, download it, follow the installation instructions, and you're good to go.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.