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

Symbolic links not accepted in config.php

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.