How to get xdebug working on a manual compiled php 5.2 binary in debian squeeze
I am exploring a new server setup using Debian squeeze(6). From a former FreeBSD perspective I have to say I like the OS very much. The problem however is that the default PHP version is 5.3. Fixing th开发者_开发知识库is was not hard, since this is a general issue. I used the following guide
http://blog.davejamesmiller.com/2011/03/how-to-install-php-5-2-fastcgi-on-debian-6-0-squeeze
and managed to compile a working 5.2.17 binary. This binary has almost all functionality bundled except for Xdebug wich is vital for my development rig.
Now I have tried to manually compile Xdebug from source but it doesn't work for my 5.2 binary. Even temporarily replacing the systems phpize yields the same result.
Is there a solution for this problem? Like i.e: bundling xdebug during the php compiling?
My sincere appologies if my English is lacking. Any insights are welcome!
[UPDATE] I was using the correct version of phpize (the one for PHP 5.2). But I found out that I had to additionally specify the
./configure --with-php-config=/full/path/to/php/bin/php-config
flag as well. It is operating perfectly now.
The issue is resolved.
You need to use the phpize
command that comes with your php 5.2 installation. Also make sure you specify the php-config path when running configure
.
精彩评论