Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Xdebug extension only for PHP7.1

I have PHP 7.1 on Ubuntu 16.04 installed. When I'm trying to install Xdebug by using apt-get install php-xdebug, I'm getting xdebug.ini in directories 5.6, 7.0 and 7.1.

I don't need /php/5.6/mods-available/xdebug.ini and /php/7.0/mods-available/xdebug.ini extensions, because I'm using only PHP 7.1 version.

Any ideas?

Thanks.

like image 684
Viktor Avatar asked Jun 18 '26 05:06

Viktor


1 Answers

It's because php-xdebug is ambiguous and will download the default package which will contain multiple versions for php compatibility, try going to xdebug site and download the code, then make/build it https://xdebug.org/

like image 109
treyBake Avatar answered Jun 20 '26 17:06

treyBake



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!