Open Php.ini в Ubuntu
php -i | grep 'php.ini'
Gleaming Gecko
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