downgrade php on ubuntu 22.04 LTS

Job ID: 37600194

Budget: $10 – $70 USD

i' like to downgrade php8.1.2 to 7.4 because phppgadmin not works with newest php

apt-get install php7.4 gives result
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libapache2-mod-php7.4' for regex 'php7.4'
Note, selecting 'php7.4-fpm' for regex 'php7.4'
Note, selecting 'php7.4-common' for regex 'php7.4'
libapache2-mod-php7.4 is already the newest version (8.1.2-1ubuntu2.14).
0 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.


i think it worked before installing but

update-alternatives --config php

gives as result
There is only one alternative in link group php (providing /usr/bin/php): /usr/bin/php8.1
Nothing to configure.

i prefer instructions or remote desktop i prefer not to give access to the server
Related categories: PHP System Admin Linux Apache Ubuntu