Encontre php.ini ubuntu
sudo find / -name php.ini
Arrogant Alpaca
sudo find / -name php.ini
php -i | grep 'php.ini'
/etc/php/7.0/apache2
# Example with php 8.1 => replace by your version number
vi /etc/php/8.1/apache2/php.ini