Daily Archives: October 13, 2009

You are browsing the site archives by date.

Zend Debugger using MAMP Pro 1.8.2 PHP executable

In Zend Studio (currently using 6.1.2) you can set the default PHP executable that you want to use to run PHP. I wanted to use the PHP executable of my MAMP Pro (1.8.2) to run my Unit tests from within Zend, since it has support for mbstring and lots of other sweetness. It took me some time to figure out how to do this, but this is how I did it.

Open MAMP Pro and go to File > Edit Template > PHP5 php.ini


Then go all the way to the bottom of the opened file. There you will have to add the Zend Debugger extension as a php.ini directive. I used the ZendDebugger.so that’s included in the Zend Studio 6.1.2 installation. Make sure your path is correct.


Now in Zend Studio you have to go to the overview of your PHP executables that looks like below and click ‘add’.


I used the default details for a MAMP PRO 1.8.2 installation, as you can see below.
Name: PHP 5.2.10 (CLI)
Executable path: /Applications/MAMP/bin/php5/bin/php
PHP ini file (optional): /Library/Application Support/appsolute/MAMP PRO/conf/php.ini