Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

phpMyAdmin config not working on Centos 6.5

Tags:

phpmyadmin

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?

like image 603
gtb Avatar asked Aug 05 '14 09:08

gtb


2 Answers

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.

like image 139
Vitaliy Sopko Avatar answered Nov 05 '22 17:11

Vitaliy Sopko


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/
like image 41
c2022 Avatar answered Nov 05 '22 17:11

c2022