Zend Debugger

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,516
Location
A Coruña, Spain
One of mine customers has required Zend Debugger and ive installed it on Debian 5 32bit PHP 5.2.13 Apache 2.2

If someone is interested here the steps:

Code:
wget http://downloads.zend.com/studio_debugger/5.2.26/ZendDebugger-v5.2-linux-glibc23-i386.tar.gz

mkdir -p /opt/Zend/php-5.2.x
tar xf ZendDebugger-v5.2-linux-glibc23-i386.tar.gz -C /opt/Zend/php-5.2.x --strip-components=2 --wildcards *5_2_x_comp*

nano /usr/local/lib/php.ini

Then add
Code:
zend_extension_manager.debug_server = /opt/Zend
; This directive allows Zend Debugger to start a debug session with:
; 127.0.0.1/32 . Zend Studio on the same computer
; 192.168.0.1/32 . Zend Studio on a computer with IP address 192.168.0.1
; 10.0.0.0/8 . Zend Studio on any computer with IP starting with 10.
zend_debugger.allow_hosts=127.0.0.1/32

; This directive allows Zend Debugger to expose itself
; upon request (this is used in some service functionality).
; The possible options are:
; never . do not expose (default)
; always . expose to whoever wants to know
; allowed_hosts . expose only if the request comes from an IP listed above
zend_debugger.expose_remotely=always
After
Code:
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

Save and Restart Apache

Code:
/etc/init.d/httpd restart

That conf will allow debugging just from localhost, for other authrization host options refer to this:

255.0.0.0 = /8
255.255.0.0 = /16
255.255.255.0 = /24
255.255.255.248 = /29
255.255.255.255 = /32 (exact match)


Code:
Source: http://forums.zend.com/viewtopic.php?f=59&t=962

Hope will be helpfull to someone
 
Last edited:
Back
Top