Symfony3 demo project don't work: PDO Exception Could not find driver (sqlite case)
<p>Recently i've created Symfony3 project by command:</p>

<pre><code>symfony new myproject
</code></pre>

<p>The project uses mysql and it works fine.</p>

<p>After that i've created demo project to study symfony best practices:</p>

<pre><code>symfony demo
</code></pre>

<p>Project was created successfully. Config.php shows, that everything is ok. app_dev.php was successfully opened in my web browser. But when i try to open "<a href="http://localhost/app_dev.php/ru/blog/" rel="noreferrer">http://localhost/app_dev.php/ru/blog/</a>" (there is a public part of the app) 500 internal server error will appear. /app_dev.php/ru/blog/ shows:</p>

<p><strong>Error message:</strong></p>

<blockquote>
  <p>An exception occured in driver: could not find driver</p>
  
  <p>500 Internal Server Error - DriverException</p>
  
  <p>2 linked Exceptions:</p>
  
  <p>PDOException »</p>
  
  <p>PDOException »</p>
</blockquote>

<p><strong>Critical part in call stack:</strong></p>

<blockquote>
  <p>CRITICAL - Uncaught PHP Exception Doctrine\DBAL\Exception\DriverException: "An exception occured in driver: could not find driver" at /var/www/symfony_demo/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractSQLiteDriver.php line 85</p>
</blockquote>

<p>I've read all stack exchange issues about PDO Exception, but none helps me... </p>

<p>I use Ubuntu, Nginx.</p>

<p>Mysql, sqlite, php5-sqlite, sqlite3, libsqlite3-dev are installed. Nginx and php5-fpm are restarted. php.ini SQLite 3.x driver for PDO Wez Furlong.</p>

<p>Demo app parameters.yml:</p>

<pre><code>database_driver: pdo_sqlite
database_host: 127.0.0.1
database_port: null
database_name: null
database_user: root
database_password: null
database_path: '%kernel.root_dir%/data/blog.sqlite'
mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: en
secret: secret_value_for_symfony_demo_application
</code></pre>

<p>php.ini file:</p>

<pre><code>[sqlite]
; http://php.net/sqlite.assoc-case
;sqlite.assoc_case = 0

[sqlite3]
;sqlite3.extension_dir =
</code></pre>

<p>I have no idea, what is the reason of the problem and how to resolve it.</p>

<p>Help please!</p>