Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm quite new with Linux server management and I have a linux server with the following configuration:

Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.6 (squeeze)
Release:        6.0.6
Codename:       squeeze
PHP version:    5.4.12-1~dotdeb.1

I'm trying to install xdebug and I've used the wizard on the xdebug website().

Output of xdebug
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 5.4.12-1
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: no
Configuration File Path: /etc/php5/apache2
Configuration File: /etc/php5/apache2/php.ini
Extensions directory: /usr/lib/php5/20100525
Instructions

    Download xdebug-2.2.1.tgz
    Unpack the downloaded file with tar -xvzf xdebug-2.2.1.tgz
    Run: cd xdebug-2.2.1

    Run: phpize (See the FAQ if you don't have phpize.

    As part of its output it should show:

    Configuring for:
    ...
    Zend Module Api No:      20100525
    Zend Extension Api No:   220100525

    If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.
    Run: ./configure
    Run: make
    Run: cp modules/xdebug.so /usr/lib/php5/20100525
    Edit /etc/php5/apache2/php.ini and add the line
    zend_extension = /usr/lib/php5/20100525/xdebug.so
    Restart the webserver

After I followed these steps and do run make test I get this output:

Build complete.
Don't forget to run 'make test'.

Xdebug requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.

Xdebug requires Zend Engine API version 220090626.
The Zend Engine API version 220100525 which is installed, is newer.
Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.


=====================================================================
PHP         : /usr/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 5.4.12-1~dotdeb.1
ZEND_VERSION: 2.4.0
PHP_OS      : Linux - Linux debian-web-001 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64
INI actual  : /usr/lib/xdebug-2.2.1/tmp-php.ini
More .INIs  :  
CWD         : /usr/lib/xdebug-2.2.1
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2013-03-10 16:16:37
=====================================================================
No tests were run.

As you can see I still get the same error.. Could anyone tell me what I'm doing wrong or where to look at?

Thanks in advance!

share|improve this question
2  
Isn't there a package in Debian for this? Installing from source is rarely the right course of action. –  vonbrand Mar 10 '13 at 16:06
    
I have downloaded and installed php 5.4 from packages.dotdeb.org, so I think I cant use packages.debian.org/squeeze/php5-xdebug for installing xdebug.. Or am I wrong? PS: The xdebug on the packages page of debian is version 2.1, but PHP 5.4 is supported by xdebug >= 2.2.x –  Ivo van Beek Mar 10 '13 at 16:19
1  
as far as I can see dotdeb's guys do not provide package with Xdebug. Why dont you use pecl to install XDebug package ? It should be quite easy. –  Robert Mar 10 '13 at 21:20
    
I also tried pecl install xdebug but the same problems with phpize showed up... "Xdebug requires Zend Engine API version 220090626. The Zend Engine API ... for a later version of Xdebug.". –  Ivo van Beek Mar 11 '13 at 7:23

1 Answer 1

It sounds, from the comments, like the specific problem that you have that's leading you to not use the existing php5-xdebug package is that you need PHP 5.4. At this point, I would strongly recommend that you save yourself a lot of pain and just upgrade your system to Debian wheezy (currently testing). We're about two or three months away from a release, the distribution is mostly frozen, and you'll have nearly as good of an experience as a stable release. It's a bit scary to be on the cutting edge, but Debian wheezy effectively already has security support nearly as good as what you'd get with stable.

wheezy would give you PHP 5.4.4 and Xdebug 2.2.1.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.