If you try to access phpMyadmin thorugh cPanel and you get the following error.
Quote:
|
Existing configuration file (./config.inc.php) is not readable.
|
the error itself indicates that there is misconfiguration of the permission of the phpMyAdmin configuration file, The configuration file for phpMyAdmin is "config.inc.php".
The configuration file is present at path "/usr/local/cpanel/base/3rdparty/phpMyAdmin"
I've followed these steps to resolve the issue.
Quote:
root@server [~]# cd /usr/local/cpanel/base/3rdparty/phpMyAdmin
root@server [/usr/local/cpanel/base/3rdparty/phpMyAdmin]# ls -al config.inc.php
-rw------- 1 root cpanelphpmyadmin 2409 May 31 2010 config.inc.php
|
As it is seen that the file was having permission of 600 hence the phpMyAdmin was giving the error.
I've changed the file permission to 644 and restarted MySQL service on the server and the error disappeared.
Quote:
root@server [/usr/local/cpanel/base/3rdparty/phpMyAdmin]# chmod 644 config.inc.php
root@server [/usr/local/cpanel/base/3rdparty/phpMyAdmin]# ls -al config.inc.php
-rw-r----- 1 root cpanelphpmyadmin 2409 May 31 2010 config.inc.php
root@server [/usr/local/cpanel/base/3rdparty/phpMyAdmin]# /etc/init.d/mysql restart
|