Moodle

Modifying config path setting for hosted environment causes error

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 2.0
  • Component/s: Other
  • Labels:
    None
  • Environment:
    Shared hosting on Linux
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

Our hosting company requires us to use a path to our folders in the format /home/users/... but when php checks the location the return is server_name/folder_name/....

Administration->Notifications flags this as an Error, and clicking Continue just repeats the error.

It would be great if this could be acknowledged as an intentional setting so this is not constantly flagged as a problem.

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

could you please try to put $CFG->dirroot = realpath(/home/users/.......); into your config.php? It might help

Show
Petr Škoda (skodak) added a comment - could you please try to put $CFG->dirroot = realpath(/home/users/.......); into your config.php? It might help
Hide
Ron Meske added a comment -

That corrects it. Just as an FYI, realpath requires the path to be enclosed in quotes.

I seem to recall when the setup for Moodle is run, there is a screen that displays the path to the application and to the moodledata folder, but only the moodledata folder can be changed. It would be nice to be able to edit the application path as well and to have a the above line listed in the config.php, just commented.

My understanding of the reason for this path change is that our hosting company is going towards a cloud computing model, even though they aren't calling it that.

Show
Ron Meske added a comment - That corrects it. Just as an FYI, realpath requires the path to be enclosed in quotes. I seem to recall when the setup for Moodle is run, there is a screen that displays the path to the application and to the moodledata folder, but only the moodledata folder can be changed. It would be nice to be able to edit the application path as well and to have a the above line listed in the config.php, just commented. My understanding of the reason for this path change is that our hosting company is going towards a cloud computing model, even though they aren't calling it that.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: