ubuntu 20 change php.ini code example
Example: how to change php version 8 to 7.1 in ubuntu 20.04
$ sudo apt install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php