Question

phpMyAdmin ignores 'config.inc.php'

  • Posted on July 22, 2014
  • SinklarAsked by Sinklar

Hi,

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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

how did you install phpMyAdmin? If you do it via yum, then the config.inc.php is taken care of, but if it was manual, then you need to make sure config.inc.php is placed in the top-level directory of phpMyAdmin (e.g. /usr/share/phpMyAdmin). Permissions don’t seem to matter, as mine is root:root and still works.

Using phpmyadmin, on Debian Jessie 8, installed thru the official repository with apt-get. There is a config folder in /etc/phpmyadmin where the config.inc.php is situated. Editing /etc/phpmyadmin/config.inc.php worked for me.

in mycase this help

  1. chmod 644 /etc/phpMyAdmin/config.inc.php
  2. chmod 755 /etc/phpMyAdmin/