phpmyadmin not working after change php version from php8.1 to php7.4

Recently I have changed the PHP version on my Ubuntu ec2 server from php 8.1 to php 7.4.

After changing php version i am not able to access my phpmyadmin so i am very tired to solve this problem.

I have a problem with phpmyadmin in Ubuntu. http://server_ip/phpmyadmin doesn’t work.

Can anyone help with this?

Thank you

I added phpmyadmin to Apache configuration:

Include /etc/phpmyadmin/apache.conf

But after that not working