You have:

\$CFG->dirroot = \"$a[0]\";

but it should be:

\$CFG->dirroot = \"$a[1]\"

'; $string['invalideventdata'] = 'Incorrect eventadata submitted: $a'; $string['invalidarraysize'] = 'Incorrect size of arrays in params of $a'; $string['mustbeoveride'] = 'Abstract $a method must be overriden.'; $string['morethanonerecordinfetch'] = 'Found more than one record in fetch() !'; $string['noadminrole'] = 'No admin role could be found'; $string['noactivityname'] = 'Page object derived from page_generic_activity but did not define $this->activityname'; $string['noblocks'] = 'No blocks installed!'; $string['noblockbase'] = 'Class block_base is not defined or file not found for /blocks/moodleblock.class.php'; $string['nocaps'] = 'Error: no capabilitites defined!'; $string['nocate'] = 'No categories!'; $string['notables'] = 'No Tables!'; $string['nopageclass'] = 'Imported $a but found no page classes'; $string['noreports'] = 'No reports accessible'; $string['nomodules'] = 'No modules found!!'; $string['modulenotexist'] = '$a module doesn\'t exist'; $string['phpvaroff'] = 'The PHP server variable \'$a[0]\' should be Off - $a[1]'; $string['phpvaron'] = 'The PHP server variable \'$a[0]\' is not turned On - $a[1]'; $string['prefixcannotbeempty'] = 'Table prefix \"$a[0]\" cannot be empty for your target DB ($a[1])'; // obsoleted 2.0 $string['prefixlimit'] = 'Table prefix \"$a\" maximum allowed length for Oracle DBs is 2cc.'; // obsoleted in 2.0 $string['withoutversion'] = 'Main version.php was not readable or specified'; $string['sessionmissing'] = '$a object missing from session'; $string['siteisnotdefined'] = 'Site is not defined!'; $string['sqlrelyonobsoletetable'] = 'This SQL relies on obsolete table(s): $a! Your code must be fixed by a developer.'; $string['upgradefail'] = 'Upgrade failed! see: $a'; $string['withoutversion'] = 'Main version.php was not readable or specified'; $string['xmlizeunavailable'] = 'xmlize functions are not available'; ?>