Top Topic ?

Zend Server CE and Xdebug install on Ubuntu

Posted in php by Ladislav Prskavec on May 21, 2009

Install Zend Server CE

  1. Open terminal and login as root root sudo -i
  2. Edit sources list nano /etc/apt/sources.list
  3. Add row: deb http://repos.zend.com/deb/ce ce non-free
  4. Get and install key: wget http://repos.zend.com/deb/zend.key -O- |apt-key add -
  5. Update repository: apt-get update
  6. Install Zend Server CE: aptitude install zend-ce

Install Xdebug

  1. You have to have this packages installed: build-essential, autoconf.

    sudo apt-get install build-essential
    sudo apt-get install autoconf
  2. Get Xdebug source, unpack and compile.

    wget http://www.xdebug.org/files/xdebug-2.0.4.tgz
    tar -xzf xdebug-2.0.4.tgz
    cd xdebug-2.0.4/
    /usr/local/zend/bin/phpize
    ./configure --enable-xdebug --with-php-config=/usr/local/zend/bin/php-config
    make
  3. Compiled library is in xdebug-2.0.4/modules/xdebug.so
  4. Copy library into /usr/local/zend/lib/debugger/xdebug.so

    cp modules/xdebug.so /usr/local/zend/lib/debugger/xdebug.so

  5. Edit file /usr/local/zend/etc/ext.d/debugger.ini and comment row (add semicolon)

    ;zend_extension_manager.dir.debugger=/usr/local/zend/lib/debugger

  6. Add at end /usr/local/zend/etc/php.ini new row with

    zend_extension=/usr/local/zend/lib/debugger/xdebug.so

  7. Restart server /etc/init.d/zend-server restart
Tagged with: ,