Posts Tagged ‘netbeans’

xdebug zend server mac os x

1. Switch off:
1.1 Zend Optimizer
1.2 Zend Data Cache
2. Stop apache
zendctl.sh stop-apache
3. Download or compile xdebug and put it into
/usr/local/zend/lib/php_extensions
4. Add config into php.ini
/usr/local/zend/etc/php.ini

zend_extension=”/usr/local/zend/lib/php_extensions/xdebug.so”

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.show_local_vars=On
xdebug.var_display_max_data=10000
xdebug.var_display_max_depth=20

5. Start apache
zendctl.sh start-apache
Compiled xdebug
Source: http://akrabat.com/php/some-notes-on-zend-server-ce-for-mac-os-x/
In case you get such a warning:

PHP Warning: Module ‘Zend Data Cache’ already loaded in Unknown on line 0
PHP Warning: Zend Extension Manager: Cannot load [...]