Display PHP Info
php -i
Path to php.ini
Look for this line:
Configuration File (php.ini) Path => /etc/php/7.4/cli
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.