I want to print the phpinfo() function to see if some modules are installed or not:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
the result of commands:
php -m | grep -i xdebug
xdebug
Xdebug
AND
php -v
PHP 5.6.37 (cli) (built: Sep 9 2018 15:55:18)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
with Suhosin v0.9.38, Copyright (c) 2007-2015, by SektionEins GmbH
I have added the following extensions and xdebugger parameters:(/usr/local/php56/lib/php.ini
)
[Zend]
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.6.so
zend_extension_ts=/usr/local/lib/ioncube/ioncube_loader_lin_5.6_ts.so
zend_extension=/usr/local/lsws/lsphp5/lib/php/modules/xdebug.so
[xdebug]
;Remote settings
xdebug.remote_autostart=on
.
.
.
You see there is no error but I can't use xdebug.
This shows what my php.ini file is:
php -i | grep "Loaded Conf"
Loaded Configuration File => /usr/local/php56/lib/php.ini
Reinstalling and recompiling and puting softlink resolved the problem:
ln -s /usr/local/php56/lib/php.ini /usr/local/lsws/lsphp5/lib/php.ini