title: Fatal error: $CFG->dataroot is not writable, admin has to fix directory permissions! Exiting
body: <pre><code>unset($CFG);
  global $CFG;
  $CFG = new stdClass();
  $CFG-&gt;dbtype    = 'sqlsrv';
  $CFG-&gt;dblibrary = 'native';
  $CFG-&gt;dbhost    = 'my remote db ip address';
  $CFG-&gt;dbname    = 'remote database name';
  $CFG-&gt;dbuser    = '****';
  $CFG-&gt;dbpass    = '**********';
  $CFG-&gt;prefix    = 'mdl_';
  $CFG-&gt;dboptions = array (
      'dbpersist' =&gt; 0,
      'dbport' =&gt; 1433,
      'dbsocket' =&gt; '',
  );
  $CFG-&gt;wwwroot   = 'http://localhost/LMS';
  $CFG-&gt;dataroot  = 'C:\\inetpub\\LMSdata';
  $CFG-&gt;admin     = 'admin';
  $CFG-&gt;directorypermissions = 0777;
  </code></pre>
  
  <p>This is my configuration in config.php. I'm using moodle 3.2 in IIS with php 7. Remote SQL server version 2012.</p>