Zend Server CE and Xdebug install on Ubuntu
Install Zend Server CE
- Open terminal and login as root
root sudo -i
- Edit sources list
nano /etc/apt/sources.list
- Add row:
deb http://repos.zend.com/deb/ce ce non-free
- Get and install key:
wget http://repos.zend.com/deb/zend.key -O- |apt-key add -
- Update repository:
apt-get update
- Install Zend Server CE:
aptitude install zend-ce
Install Xdebug
- You have to have this packages installed:
build-essential, autoconf
.
sudo apt-get install build-essential
sudo apt-get install autoconf - 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 - Compiled library is in
xdebug-2.0.4/modules/xdebug.so
- Copy library into
/usr/local/zend/lib/debugger/xdebug.so
cp modules/xdebug.so /usr/local/zend/lib/debugger/xdebug.so
- 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
- Add at end
/usr/local/zend/etc/php.ini
new row withzend_extension=/usr/local/zend/lib/debugger/xdebug.so
- Restart server
/etc/init.d/zend-server restart
Advertisements
4 comments