Bug 19205 - Phpmyadmin /etc/phpmyadmin/config.inc.php is ignored because of missing definition in vendor_config.php
Summary: Phpmyadmin /etc/phpmyadmin/config.inc.php is ignored because of missing defin...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-17 15:13 CEST by Raphael Gertz
Modified: 2016-08-18 16:04 CEST (History)
0 users

See Also:
Source RPM: phpmyadmin-4.6.3-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Raphael Gertz 2016-08-17 15:13:40 CEST
Description of problem:
Phpmyadmin configuration in /etc/phpmyadmin/config.inc.php is ignored for example if we put AllowNoPassword to true in it or a die('should die here');

To fix bug, you need to patch the following file :
/usr/share/phpmyadmin/libraries/vendor_config.php
And replace this line 49 :
define('CONFIG_DIR', '');
With :
define('CONFIG_DIR', '/etc/phpmyadmin/');


Version-Release number of selected component (if applicable):
phpmyadmin-4.6.3-1.mga6

How reproducible:
Always

Steps to Reproduce:
1. urpmi phpmyadmin
2. vim /etc/phpmyadmin/config.inc.php + add die('should die here');
3. http://localhost/phpmyadmin/ don't die
Comment 1 David Walser 2016-08-18 16:04:09 CEST
Fixed in phpmyadmin-4.6.4-2.mga6.  Thanks for the report.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.