Skip to content

Configure Xdebug with Zend Server 5.6 on OSX

This is a quick note for those running into issues getting xdebug installed on Zend Server 5.6 using pear/pecl. This has to do with the fact that xdebug is being installed as 64bit vs 32bit on OSX.

Download and Configure Xdebug

Download Xdebug

Extract the contents:
$: tar xzvfp xdebug-2.2.1.tgz

$: cd xdebug-2.2.1

$: phpize

$: ./configure MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS=”-arch i386 -g -Os -pipe -no-cpp-precomp” CCFLAGS=”-arch i386 -g -Os -pipe” CXXFLAGS=”-arch i386 -g -Os -pipe” LDFLAGS=”-arch i386 -bind_at_load”

$: make

$: cp modules/ /usr/local/zend/lib/php_extensions/

Modify INI Files and Restart Apache

Comment out all the lines in the debugger.ini file
$: vi /usr/local/zend/etc/conf/debugger.ini

Comment out all the lines in the optimizerplus.ini file
$: vi /usr/local/zend/etc/conf/optimizerplus.ini

Add xdebug.ini file
$: vi /usr/local/zend/etc/conf/xdebug.ini
With Contents:


Restart Apache
$: sudo /usr/local/zend/bin/apachectl restart

Posted in Debugging, PHP, Zend Server.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. Launch the PHPStorm Remote Debugger from a PHPUnit Test – Stephen Rhoades linked to this post on October 20, 2013

    [...] article assumes that you already have xdebug setup and running, if you are on OSX you can refer to this article on setting up xdebug on OSX otherwise you can refer to the xdebug install [...]

Some HTML is OK


(required, but never shared)

or, reply to this post via trackback.