Hello everyone, it's my firs post so be patient and direct me to exact topic if such exists (I didn't find one).
I've got problem with executing any CLI script from command line.
After executing any of CLI console returns me message:
"Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting."
Dataroot is set up properly, because I have no problems with using website.
My Moodle version: Moodle 3.0.3+ (Build: 20160331).
PHP version: 5.4.45
Moodle stays on dedicated server.