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

  1. Download the latest Zend Debugger source files
    1. Visit the Zend Debugger download page
      http://downloads.zend.com/pdt/server-debugger/
    2. Download the latest files
      ZendDebugger-*-linux-glibc23-i386.tar.gz
  2. Extract the Zend Debugger download
  3. Copy the module file into the php modules directory
    cp ZendDebugger-*-linux-glibc23-i386/5_2_x_comp/ZendDebugger.so /usr/lib/php/modules
  4. Copy the dummy.php file to your http root
    cp ZendDebugger-*-linux-glibc23-i386/dummy.php /var/www/html
  5. Delete the remaining Zend files
    rm -f ZendDebugger-*-linux-glibc23-i386.tar.gz
    rm -r -f ZendDebugger-*-linux-glibc23-i386
  6. Create an Apache configuration file
    1. Create an /etc/php.d/ZendDebugger.ini file
    2. 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
  7. Restart Apache
    service httpd restart

Test the Zend Debugger

  1. Visit localhost/phpinfo in a local web browser
  2. Search for the following text
    with Zend Debugger
    If the text cannot be found, the Zend Debugger has not been installed correctly.

Open Source Software: