can confirm i had the same issue using same installation, phpmyadmin 5.0, litespeed + php7.4 and mariadb 10.4 (centos 8) and the solution shared worked for me.
switch on phpmyadmin config.inc
$cfg['Servers'][$i]['host'] = 'localhost';
to
$cfg['Servers'][$i]['host'] = '127.0.0.1';
also using wordpress i had to switch on wpconfig.php from localhost to 127.0.0.1
my /etc/hosts file have configured
127.0.0.1 localhost