Linux – debian 6 – php 5.4.1 – xdebug phpize php-config –version incorrect

debiandebian-squeezelinuxphp5xdebug

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!

Best Answer

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.