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

==
When I try to access phpmyadmin on a cPanel server, i get the following error:

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

Solution:

#cd /usr/local/cpanel/base/3rdparty/phpMyAdmin
#chown cpanel.cpanel config.inc.php

About these ads

Tags: ,

7 Responses to “PHPMyAdmin :: Existing configuration file (./config.inc.php) is not readable.”

  1. مصر Says:

    i try this solution but it does not work

  2. Mormon Doctrine Says:

    I also tried chown’ing that, and it didn’t work for me either. I’ll try to figure out something else.

  3. subakar prabhu Says:

    Hi ,

    It’s true that the error only occurs when you try to start phpMyAdmin: the config-file belongs to phpMyAdmin.

    I still think the webserver doesn’t have the rights to read the file, but this can depend on the system you are working on. maybe based onTiger or Leopard it will occur?
    Click on ‘Weitere Infos’ . This will open a ‘Get Info’ window. On the bottom of the window you can set the permissions.

    If you are working on Tiger, you can set the owner (or the group) to ‘nobody’. What you need to set on Leopard I’m not sure, but if you are not working on a production machine, then you can give read-permissions to everyone. Try it.

  4. subakar prabhu Says:

    Hi ,

    It’s true that the error only occurs when you try to start phpMyAdmin: the config-file belongs to phpMyAdmin.

    I still think the webserver doesn’t have the rights to read the file, but this can depend on the system you are working on.
    Click on ‘Weitere Infos’ . This will open a ‘Get Info’ window. On the bottom of the window you can set the permissions.

    If you are working on Tiger, you can set the owner (or the group) to ‘nobody’. What you need to set on Leopard I’m not sure, but if you are not working on a production machine, then you can give read-permissions to everyone.

  5. subakar prabhu Says:

    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.

  6. kamal Says:

    @prabhu

    when I am trying to run the below command

    [root@centos phpmyadmin]# chown root:cpanelphpmyadmin config.inc.php
    chown: `root:cpanelphpmyadmin’: invalid group

    It is saying invalid group..
    wat to do now as the above group doesnt exist on maa system..

    Thanks in advance

  7. esteban Says:

    cd /opt/lampp/phpmyadmin

    chown username:username config.inc.php

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


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: