I'm coming at this from a windows background, so I am learning Linux (Ubuntu) and Moodle at the same time.
I am stuck trying to get the cron script to run.
I follow the guide, so Moodel is installed in /opt/moodle
The following command:
/usr/bin/php /opt/moodle/admin/cli/cron.php
gives the errors:
PHP Warning: require(/opt/moodle/admin/cli/../../config.php): failed to open stream: No such file or directory in /opt/moodle/admin/cli/cron.php on line 33
PHP Fatal error: require(): Failed opening required '/opt/moodle/admin/cli/../../config.php' (include_path='.:/usr/share/php') in /opt/moodle/admin/cli/cron.php on line 33
the problem line in cron.php is:
require(__DIR__.'/../../config.php');
What do I need to change this to?