Zend Debugger
The Zend Debugger is a PHP extension which can be installed on a web server to enable the debugging of PHP scripts. Visit the Zend PDT website for more information.
Version
- CentOS 5.x
- Apache 2.2.x
- PHP 5.2.x
- Zend Debugger 5.2.x
Requirements
Install Zend Debugger 5.2.x
- Download the latest Zend Debugger source files
- Visit the Zend Debugger download page
http://downloads.zend.com/pdt/server-debugger/ - Download the latest files
ZendDebugger-*-linux-glibc23-i386.tar.gz
- Visit the Zend Debugger download page
- Extract the Zend Debugger download
- Copy the module file into the php modules directory
cp ZendDebugger-*-linux-glibc23-i386/5_2_x_comp/ZendDebugger.so /usr/lib/php/modules - Copy the dummy.php file to your http root
cp ZendDebugger-*-linux-glibc23-i386/dummy.php /var/www/html - Delete the remaining Zend files
rm -f ZendDebugger-*-linux-glibc23-i386.tar.gz
rm -r -f ZendDebugger-*-linux-glibc23-i386 - Create an Apache configuration file
- Create an /etc/php.d/ZendDebugger.ini file
- Add the following text to the file:
; Enable Zend Debugger extension module
zend_extension=/usr/lib/php/modules/ZendDebugger.so
[zend_debugger]
zend_debugger.allow_hosts = 127.0.0.1
zend_debugger.expose_remotely = always
- Restart Apache
service httpd restart
Test the Zend Debugger
- Visit localhost/phpinfo in a local web browser
- Search for the following text
with Zend Debugger
If the text cannot be found, the Zend Debugger has not been installed correctly.