Configuration issues with Xdebug on Debian Etch

In March I will start to give a lecture on web programming at the University of Applied Sciences Rosenheim where I’ll be using PHP for practical application. This week I started to setup a Debian-based (Etch) web-server with PHP 5.2 in a virtual-machine with VMWare. Part of this setup was getting XDebug2 integrated. It’s really awesome and my students definitely need to learn about it. Shame on me, because I haven’t written Derick a postcard, yet.

Building went well as usual but when I tried to integrate the extension inside php.ini it was all weird. When loading it with

zend_extension=xdebug.so

the error log told me:

Failed loading xdebug.so: xdebug.so: cannot open shared object file: No such file or directory.

The extension_dir has been properly configured in php.ini and I also have the xdebug.so file in the right place. When loading Xdebug as a normal extension everything went entirely well:

extension=xdebug.so

But I need to enable it as Zend extension. Whatever. I finally used the full path to xdebug.so to load it:

zend_extension=/path/to/extension_dir/xdebug.so

That worked. But do I have to give a full path here?

Posted in Development, PHP, January 30th, 2008

11 Responses



Leave a Reply