Webhosting Blog

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.

FollowFollowing steps to correct the error.

1) Login to the server as root.

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

[root@server~]# cd /usr/local/cpanel/base/3rdparty/phpMyAdmin

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

[root@server phpMyAdmin]# ls -l config.inc.php

-rw-r—–  1 root root   2409 May 25 11:18 config.inc.php

4) If the ownership is not proper set it to root:cpanelphpmyadmin.

[root@server phpMyAdmin]# chown root:cpanelphpmyadmin config.inc.php

5) Just restart the cpanel and mysql service on the server.

[root@server~]# /scripts/restartsrv cpanel

[root@server~]# /scripts/restartsrv mysql

This should sort the issue now.

About these ads

5 responses

  1. Pingback: 2010 in review « Linux Blog

  2. c-i-k-o

    Hey, thx for this issue but iam a newbie in this topics
    i never worked with cpanel or something else and this is why i dont understand your issue

    my path is /opt/lampp/phpmyadmin/config.inc.php
    so i never understand this with something like cpanel :((((((
    and the another point is what do you mean with
    [root@server~]# /scripts/restartsrv mysql
    whats a scrpt in this way?

    i’m very lucky if u could help me

    E-Mail address is c-i-k-o@hotmail.com

    August 3, 2011 at 12:38 pm

    • Hi,
      This is caused due to permission issues and you can solve it using the following steps.
      a) In the terminal su to root : su
      b) Provide the root password when prompted
      c) chown -hR root /opt/lampp (Change the path as required)
      d) chmod -R 777 /opt/lampp
      e) /opt/lampp/lampp restart
      Hope this helps you to fix the issue!

      August 4, 2011 at 3:14 am

      • c-i-k-o

        Thank you but it does not work :((((
        i do all the things but the result is the same :(

        could it be that the error is beacause that 2 days ago i want to declare a password for phpmyadmin so i have read that i have to do this by config.inc.php.
        so i notice that i have no permission, i work with terminal and made me the needed permission…

        but when i opened the file, i saw that the content was empty. so i had copy from the not-installed config.inc.php file the content and paste it into the file which was empty and since this pas it doesn’t work… :( and i really don’t know how i have to avoid this mistake :(((

        is there a possibility to repair this :(

        August 4, 2011 at 6:47 am

      • Hi,
        Well not very sure about the exact problem until can view the logs. Can Google for this problem to hopefully sort this out!

        August 6, 2011 at 2:55 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 28 other followers