phpMyAdmin ignores 'config.inc.php'

July 22, 2014 5.5k views


I have Ubuntu 14.04 running Nginx, MySQL, PHP5, Ajenti and Ajenti V. I also installed phpMyAdmin and I can access it via <server>/phpmyadmin. But phpMyAdmin seems to ignore the config.inc.php file.

I say that the config file is "ignored" because phpMyAdmin actually works but doesn't load my preferences (and keeps asking about the blowfish_secrect passphrase, for example).

I tried these different approches: created the file from scratch, duplicated and renamed config.inc.sample.php and used the phpMyAdmin setup utility. The result is the same.

The file is present, the permissions seem to be OK (-rw-r--r-- 1 root root) but phpMyAdmin doesn't want to use it. :)

Anybody else ever encountered that?

5 Answers

I may have found a solution, it looks like it's related to the website open_basedir setting in Ajenti V.

  • Hello. I do not use Apache. I use a bunch of nginx + php-fpm + mariadb. I
    established myself PhpMyAdmin all set properly and I was able to go
    http://prntscr.com/4v9nwk. But there is one problem that the file is
    /etc/phpMyAdmin/config.inc.php completely ignore. I even deleted it but
    continues to work PhpMyAdmin. It is necessary to configure PhpMyAdmin, but
    the system did not see /etc/phpMyAdmin/config.inc.php. How to make so that would take into account the settings in the file /etc/phpMyAdmin/config.inc.php?

  • I'm having the exact same issue for the last 2 days and it has been doing my heading...

    I have been scanning the internet for hours and I simply cannot find any fix to this.

Try to edit this file instead: /var/lib/phpmyadmin/config.inc.php

neuroticimbecile Hit this on the head. Mine was blank so I copied the contents of the sample file over edit my values then whala.

It has been quiet some time since this post was created but it's always important to keep it up to date so it may help other users.

The reason phpMyAdmin ignores 'config.inc.php' is file ownership. make sure the 'config.inc.php' is owned by the appropriate user (apache or Nginx).

Have fun ;)

I do go crazy with this. I just can't change preferences on my last local debian phpmyadmin 4.2.12deb2+deb8u1
Tried do change config.inc.php owner, added a die('here') in the file that shows that the file is actualy read. But the simple line

$cfg['PropertiesIconic'] = TRUE;

won't work !
The preferences must be changed somewhere later

Have another answer? Share your knowledge.