title: Install and integrate tcpdf in php scripts on Debian 8
body: <p>I have a Debian 8 distribution and am trying to get the tcpdf php library running for generating pdf documents. I notice that it is already installed as a package when searching for it in Synaptic Package Manager. It's version 6.0.093+dfsg-1 and its location is /usr/share/doc/php-tcpdf. I looked around online for instructions and tutorials for using the library in my php scripts but haven't found anything explicit and instructive. Neither do the official sites: <a href="https://tcpdf.org/" rel="nofollow noreferrer">https://tcpdf.org/</a> and <a href="https://github.com/tecnickcom/tc-lib-pdf" rel="nofollow noreferrer">https://github.com/tecnickcom/tc-lib-pdf</a> offer any setup, installation, or integration documentation.</p>
  
  <p>I downloaded the TCPDF-master.zip from <a href="https://github.com/tecnickcom/TCPDF" rel="nofollow noreferrer">https://github.com/tecnickcom/TCPDF</a> , pasted it into my /var/www/html/ directory, but when I try running one of the examples, or the index.php file, the browser just gives me the following error:</p>
  
  <pre><code>The localhost page isn’t working localhost is currently unable to handle this request. HTTP ERROR 500
  </code></pre>
  
  <p>The error.log file at /var/log/apache2 displays:</p>
  
  <pre><code>PHP Fatal error:  Unknown: Failed opening required '/var/www/html/tcpdf/examples/example_001.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
  </code></pre>
  
  <p>I received the same errors even after installing PEAR and also when trying to run the fpdf library.</p>
  
  <p>Please instruct me to follow the proper procedure on correctly using this library. Thanks.</p>