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?
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With