Bug 55760 - phpmyadmin-2.5.7, phppgadmin-3.4 and /etc/php*admin/config.inc.php
Bug#: 55760 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: CLOSED Severity: minor Priority: P2
Resolution: FIXED Assigned To: web-apps@gentoo.org Reported By: gentoo-bugs@digital-trauma.de
Component: Ebuilds
URL: 
Summary: phpmyadmin-2.5.7, phppgadmin-3.4 and /etc/php*admin/config.inc.php
Keywords:  
Status Whiteboard: 
Opened: 2004-07-01 00:58 0000
Description:   Opened: 2004-07-01 00:58 0000
Hi there,

after trying out the new webapp install system, I noticed that phpmyadmin doesn't use /etc/phpmyadmin/config.inc.php in libraries/common.lib.php line 74, while phppgadmin gets patched to use it's pendant /etc/phppgadmin/config.inc.php.

I installed them both with USE="-vhosts", so phppgadmins behaviour makes more sense IMHO.

------- Comment #1 From Thomas R. (TRauMa) 2004-07-01 01:24:38 0000 -------
OK, read the fine GLEP, which says:

- both apps should put their config file to
  /etc/webapps/${PF}/config.inc.php
- The config file will be used as a copy template for webapp-config-installs

So both apps are wrong.

While that makes sense in the USE="vhosts" case, I don't think it's very usefull for -vhosts, where it would be better to symlink to the configuration file directly. But that is a webapp/GLEP issue, nothing to do with phpmyadmin/phppgadmin.


------- Comment #2 From Tom Payne (RETIRED) 2004-07-09 12:32:46 0000 -------
Stuart,

As you are the creator of the webapps system, please advise me what the best course of action for phpMyAdmin is.

Thanks,

Tom

------- Comment #3 From Jakub Moc (RETIRED) 2004-12-27 16:46:46 0000 -------
OK, read the fine PHP manual (safe mode section). No, I really won

------- Comment #4 From Jakub Moc (RETIRED) 2004-12-27 16:46:46 0000 -------
OK, read the fine PHP manual (safe mode section). No, I really won´t put /etc
into open_basedir and hence phppgadmin fails without manual adjusting
lib.inc.php - this idea of putting config files for webapps into /etc (and the
fine GLEP) is horrendously wrong. :-/

------- Comment #5 From Jakub Moc (RETIRED) 2005-04-13 09:08:29 0000 -------
*** Bug 78090 has been marked as a duplicate of this bug. ***

------- Comment #6 From Thomas R. (TRauMa) 2005-04-28 19:15:08 0000 -------
OK, so what is happening now with the fine GLEP? :-) I will ask every half year
until something happens! ;-)

------- Comment #7 From Stuart Herbert (RETIRED) 2005-05-30 03:02:46 0000 -------
The GLEP is wrong.  The config files for these packages should be installed 
into the same directory as the app itself (to allow for multiple installs of 
the same app).

I'll take a look at both apps when I can to see what changes need making.

Best regards,
Stu

------- Comment #8 From Renat Lumpau 2005-07-06 11:33:05 0000 -------
phpmyadmin appears to be fine. Will look into phppgadmin

------- Comment #9 From Renat Lumpau 2005-07-06 12:18:26 0000 -------
phppgadmin fixed in cvs

------- Comment #10 From Thomas R. (TRauMa) 2006-01-21 10:41:30 0000 -------
mass cleaning my bugs