When I remove the $ in the folder structure and moved to different folder application is working fine. But I need to incorporate $ in the floder. Let me know how can i fix this error by not removing the $
Below is the config and the error message I see when I use the config directory in commented section.
$CFG->dbtype = 'sqlsrv';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'xxxxxx';
$CFG->dbname = 'xxxx';
$CFG->dbuser = 'xxxx';
$CFG->dbpass = '$@#xxxx';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => 1433,
'dbsocket' => '',
);
$CFG->wwwroot = 'http://xxxx/xxxx';
//$CFG->dataroot = 'D:\\WebSite$\\Apps\\xxxx';
$CFG->dataroot = 'D:\\www\\xxxx';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
Error Message:
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.