Menu

Moodle 5.1 moved the code. Your nginx root probably did not
📰

Moodle 5.1 moved the code. Your nginx root probably did not

DEV Community: php·Luuk Verhoeven·about 9 hours ago
#3gndB1GM
#devto#dev#root#config#moodle
Reading 0:00
15s threshold

Moodle™ 5.1 put the web tree in public/ . $CFG->dirroot is now that public/ directory. $CFG->root is the install root above it. $CFG->dataroot did not move. If nginx root still points at the install root, you are serving files Moodle spent a release cycle hiding.

This is a different failure from a dataroot that sits on the public hostname. Dataroot is student files. A wrong 5.1 document root is source : vendor/ , node_modules/ leftovers, config.php , composer.json , .git , upgrade scripts, and every PHP file that used to sit next to index.php .

The official note is on moodledev.io .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.