In trying to get ImageMagick to work with HEIC, I noticed that while I have Ubuntu 19.10 installed, phpinfo() shows version 19.04. This makes it difficult to know which php.ini to edit, especially as there is a PHP 7.2 folder and a 7.3 folder with phpinfo() reporting that the php.ini is in 7.2.
To add to the confusion, running php -v at the command line shows the expected versions, not the earlier versions shown in phpinfo. How does one get all this into sync and remove the older unused versions?
php -v PHP 7.3.12-1+ubuntu19.10.1+deb.sury.org+1 (cli) (built: Nov 28 2019 07:38:11) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.12, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.12-1+ubuntu19.10.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies