PHPMyAdmin: Existing configuration file (./config.inc.php) is not readable

While trying to access phpmyadmin on WHM if you get following error:

Existing configuration file (./config.inc.php) is not readable.

Do the following steps to resolve:

Login to the server as root.

Go to the directory /usr/local/cpanel/base/3rdparty/phpMyAdmin.

cd /usr/local/cpanel/base/3rdparty/phpMyAdmin

Check the ownership of the file config.inc.php. Check if the ownership of the file is assigned to root:cpanelphpmyadmin.

If the ownership is not correc set it to root:cpanelphpmyadmin.

chown root:cpanelphpmyadmin config.inc.php

Just restart the cpanel and mysql service on the server.

/scripts/restartsrv cpanel

/scripts/restartsrv mysql

That’s it.