title: give access to file outside www/html folder
body: <p>I have LAMP server </p>
  
  <p>Server version: Apache/2.4.29 (Ubuntu)</p>
  
  <p>PHP: PHP 7.2.5-0ubuntu0.18.04.1</p>
  
  <p>I need to give an php SQLITE3 access to db outside www/html folder.
  Right now my filesystem looks this way.</p>
  
  <pre><code>/root
      ./database
          user.db
  /var
      ./www
          ./html
              index.html
              reg.php
  </code></pre>
  
  <p>user.db must be located in /root/database, so just putting it inside var/www/html isn't solution for me. </p>
  
  <p>So I need to give access to this folder for Apache or php.
  I found some information here <a href="https://httpd.apache.org/docs/2.4/urlmapping.html" rel="nofollow noreferrer">https://httpd.apache.org/docs/2.4/urlmapping.html</a>, but didn't get how this works and where I need to put this? </p>