These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Multiple PHP Versions XDEBUG not working on the new forum.
Hi, I have a Centos 6.5 64 Bits system with multiple PHP Versions (5,3 std and 5.4 SCL) working properly as fas as VPS are concerned but I don't seem to be able to make XDEBUG work on VPS with PHP 5.4 enabled. It seems the SCL version (5.4) does not have the proper PHP Development libraries included.
Is it possible to support XDEBUG on PHP 5.4 through SCL on a Virtualmin VPS?
Also if I login through SSH into a VPS with PHP 5.4 enabled I get the following in response to the php -v command:
$ php -v
PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans
$
Is this to be expected or should I see the PHP 5.4 version reflected?
If I open up a bash session with SCL I get the 5.4 version reflected but with the corresponding XDEBUG error reflected:
$ scl enable php54 bash
$ php -v
Failed loading /opt/rh/php54/root/usr/lib64/php/modules/xdebug.so: /opt/rh/php54/root/usr/lib64/php/modules/xdebug.so: undefined symbol: php_body_write
PHP 5.4.16 (cli) (built: Nov 19 2014 08:05:17)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
$
Thanks
You need to install the php-pecl-xdebug package for the version of php you are using
For CentOS 7
PHP 5.4
yum --enablerepo=remi install php54-php-pecl-xdebug.x86_64
PHP 5.5
yum --enablerepo=remi install php55-php-pecl-xdebug.x86_64
PHP 5.6
yum --enablerepo=remi install php56-php-pecl-xdebug.x86_64
The command might differ for you depending on the OS.
What OS are you using?
Xdebug: http://xdebug.org/docs/install
Hi Shane Thanks for the input but it did not fix the issue. In fact now I can not switch to 5.4 from scl
# scl enable php54 bash
# php -v
PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.2.7, Copyright (c) 2002-2015, by Derick Rethans
#
Although I can still set the php 5.4 version to the VPS through Vietualmin and the server uses the specified php version but XDEBUG is not listed by phpinfo().