title: Why can't DBD::SQLite insert into a database through my Perl CGI script?
body: <p>I am running a SQLite database within a Perl CGI script which is being accessed by <a href="http://search.cpan.org/dist/DBD-SQLite" rel="noreferrer">DBD::SQLite</a>.  This is being run as a straight CGI on Apache.</p>
  
  <p>The DBI connection works fine and selects are able to be run. However, when I attempt to do an insert I get a die with the following error:</p>
  
  <pre><code>DBD::SQLite::st execute failed: unable to open database file(1) at dbdimp.c line 402 at index.cgi line 66
  </code></pre>
  
  <p>I have tried changing the database file permission to 666 to try to fix this however I am still receiving the error.</p>
  
  <p>Any advice?</p>