open_basedir settings

Re: open_basedir settings

by Matteo Scaramuccia -
Number of replies: 0
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Jeffrey,
apologies for my being not clear enough. Let's recap all the info:

  1. You've configured your web server to serve C:\moodle\server\moodle when pointing the browser to http://localhost
  2. You didn't check the open_basedir setting before opening the browser, to open the paths to the Moodle ones too
  3. You started browsing http://localhost, the Moodle installation started but you've been flooded by error messages about open_basedir
  4. You've disabled open_basedir and restarted the web server but the system doesn't still work

Is that correct? Assuming yes, IMHO it is possible that Moodle is not friendly enough with open_basedir limitations when it needs to bootstrap its internal cache logics, including where to find the pieces of code (classes).

Since you've at least added the dirroot (== the physical path the wwwroot points to) and the dataroot to the open_basedir setting in your PHP setup, now try to rename/remove the cache/ folder within the dataroot and open again the browser: Moodle will re-init that folder and now, given that the protection has been fixed, it should correctly build the paths where finding each piece of code.

HTH,
Matteo