Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64448

Move config.php to moodle_data directory

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 3.6.1
    • Fix Version/s: None
    • Component/s: Installation
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      Perhaps I'm going about this the wrong way, but I'm having trouble properly running Moodle in a Docker container on OpenShift Container Platform.

      The issue is that after I install Moodle, every time the container restarts I end up back at the "install" screen.  If I apply the existing db creds and moodle data dir (which is a persistent volume), then everything is back in order.

      The problem is that config.php is in the root source directory.  This isn't (and can't be) a persistent volume, so every time the container restarts, that file is gone.

      Is it possible to have config.php created in the data directory?  That would make life much easier from a Docker perspective.

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              Pitt Andrew
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: