'phpMyAdmin config not working on Centos 6.5

Recently installed phpMyAdmin using yum:

yum install phpmyadmin

phpmyadmin was installed to

/usr/share/phpMyAdmin/ 

but there is no config file there.

there is a config.inc.php file at

/etc/phpMyAdmin/config.inc.php

as the phpMyAdmin docs indicate (http://docs.phpmyadmin.net/en/latest/setup.html#linux-distributions - read bit about Red Hat Enterprise Linux)

However, changes to that file are not picked up by the phpMyAdmin application. I've tried putting a copy of that in various locations:

/etc/phpMyAdmin/config/config.inc.php
/usr/share/phpMyAdmin/config.inc.php
/usr/share/phpMyAdmin/config/config.inc.php

without success. None of these files are used as config, and they all had the correct permissions (a+rwx), as did their parent directories.

Does anyone know why this doesn't work? Naming the file config.inc.php is correct, right?



Solution 1:[1]

phpMyAdmin can't read config file and using default config.

I've solved this issue by setting chmod 644 to this file:

/etc/phpMyAdmin/config.inc.php

And chmod 755 to this folder:

/etc/phpMyAdmin/

Check file and folder directories are readable by user that you're running web server also.

Good luck.

Solution 2:[2]

I encountered the same issue when running nginx web server on CentOS 7. I figured out that the problem lies in insufficient access permissions to the configuration file, which resides in /etc/phpMyAdmin/config.inc.php.

By default this file and parent folder is owned by root:apache and changing group to nginx solves this issue.

chown -R root:nginx /etc/phpMyAdmin/

Solution 3:[3]

I had this problem today. I know it's al old thread but Google brought me here, so I'll give the solution to what was my problem.

I had declared the basedir in PHP as /etc/phpmyadmin like that in lowercase but it should be /etc/phpMyAdmin in camelcase. An absurd mistake that took me 1 hour to figure out.

If you want to quickly see how it looks in your configuration just run

echo ini_get('open_basedir');

Check if the names are correct if not then change in php.ini or any other configurations you use in your case for PHP.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Vitaliy Sopko
Solution 2 c2022
Solution 3 Dharman