sudo find / -name php.ini
php -i | grep 'php.ini'
vim /etc/php/8.0/apache2/php.ini or sudo vim /etc/php/8.0/apache2/php.ini
# Example with php 8.1 => replace by your version number vi /etc/php/8.1/apache2/php.ini
/etc/php/7.0/apache2