Menu

#1573 Export non-permanent settings to PHP (no pmadb)

Needs_decision
open
nobody
None
Normal
2015-04-29
2014-12-10
No

A way to export the config to PHP format for injection in config.inc.php would be nice.

Discussion

  • Isaac Bennetch

    Isaac Bennetch - 2014-12-13

    I guess you basically would like a way to download the complete config.inc.php, which I understand. However, because there can be various passwords (for user and controluser), I don't think it's likely we'll make this available. Sure, in some cases it's possible to see config.inc.php anyway through file system access, but in my opinion we shouldn't allow this.

     
  • Marc Delisle

    Marc Delisle - 2014-12-13

    I agree with Isaac, but maybe Olaf can clarify the goal.

     
  • Olaf van der Spek

    It's about exporting of settings, not about the entire config.inc.php. One can already export to JSON but AFAIK this can't be plugged into config.inc.php or can it?

     
  • Isaac Bennetch

    Isaac Bennetch - 2014-12-14

    Oh, I get it -- the Settings tab, not config.inc.php.

    Yeah, that actually does make quite a bit of sense.

     
  • Marc Delisle

    Marc Delisle - 2014-12-14

    Olaf,
    why would you want to add these settings to config.inc.php? You can always import them in Settings > Import from file and use the "Merge with current configuration" to make them permanent.

     
    • Olaf van der Spek

      On Sun, Dec 14, 2014 at 11:44 AM, Marc Delisle lem9@users.sf.net wrote:

      Olaf,
      why would you want to add these settings to config.inc.php? You can always import them in Settings > Import from file and use the "Merge with current configuration" to make them permanent.

      Would it really be permanent? Where do these settings get stored in that case?

       
  • Marc Delisle

    Marc Delisle - 2014-12-14

    They are stored in the phpMyAdmin configuration storage, which is permanent.

     
  • Olaf van der Spek

    What if I don't have that set up?

     
  • Marc Delisle

    Marc Delisle - 2014-12-15

    If I understand correctly your request, this is because you had settings saved in your browser storage?

     
  • Olaf van der Spek

    Not really, I'm just experimenting with the settings and would like to make some of them permanent, without having to setup the pMA DBs (for config storage etc).

     
  • Olaf van der Spek

    Can the settings be stored in the pMA DB?

     
  • Marc Delisle

    Marc Delisle - 2015-04-01
    • summary: Export Config to PHP --> Export non-permanent settings to PHP (no pmadb)
     
  • Marc Delisle

    Marc Delisle - 2015-04-08

    Olaf, after a team discussion, we believe that this would duplicate the /setup interface, so we suggest that you use /setup instead.

     
  • Olaf van der Spek

    How does /setup allow me to save the current settings to a PHP file?

     
    • Marc Delisle

      Marc Delisle - 2015-04-08

      The point is to use /setup to build the configuration to your liking, using almost the same interface as Settings, then use the generated config file.

       
  • Olaf van der Spek

    I don't think that allows for a good user experience. I like to change one setting at a time, review the effects, etc. The initial setup will never be perfect and not allowing the user to save the current settings seems weird.

     
    • Marc Delisle

      Marc Delisle - 2015-04-29

      For a good user experience, use the phpMyAdmin configuration storage, which was designed for correct storage of "volatile" user settings. We don't intend to duplicate the configuration storage feature.

       
  • Olaf van der Spek

    pMA conf storage is single-server.. I'd like to export it to a VCS so it can be used on multiple servers.

     
  • Olaf van der Spek

    No, the servers have no relation to eachother.. Each has it's own pMA install and is owned by a different person.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.