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

Symbolic links not accepted in config.php

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.6.1
    • None
    • Administration
    • None
    • Debian GNU/Linux

    Description

      The file config.php contains the parameters $CFG->dirroot and $CFG->dataroot. These parameters do not accept paths containing symbolic links, instead forcing me to enter the canonical path. My site is hosted at a webhost (Dreamhost) which stores users' home directories on NFS file servers, and /home/username is a symbolic link to /home/.filer/username. I'm forced to enter the name of the filer in config.php, invalidating the configuration whenever the provider moves my directory to another filer.

      This error occurs whenever I try to access the administration page:

      Please fix your settings in config.php:

      You have:

      $CFG->dirroot = "/home/username/aiims.elearning.net.in";

      but it should be:

      $CFG->dirroot = "/home/.filer/username/aiims.elearning.net.in";

      There should be no reason for moodle to care that a component of its installation path is a symbolic link.

      Attachments

        Issue Links

          Activity

            People

              skodak Petr Skoda
              shariff_a A Shariff
              Nobody Nobody
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: