title: Can't access SQLite database on IIS
body: <p>Okay I've been trying to do this for hours and it just won't work. I have a simple Perl script that is trying to open a database:</p>
  
  <pre><code>my $db;
  my $cgi = new CGI;
  $db = DBI-&gt;connect("dbi:SQLite:dbname=test.db") or do
  {
      print $cgi-&gt;header("text/plain", "500 Internal Server Error");
      print "Can't connect to database.";
  };
  </code></pre>
  
  <p>The script works fine when run from the command line, but it refuses to work on IIS. I put both the script and database into C:\inetpub\wwwroot\test and changed the whole test directory security to have all permission to Everyone. It still won't work. I don't know how to get it to access the file.</p>