$ 0 0 par Bret Miller. Your $CFG->wwwroot is fine. I don't have a $CFG->dirroot either, so I'm guessing that Moodle is able to detect that on its own on most servers.