title: FreeBSD. nginx, php-fpm, PDO_mysql driver does not work
body: <p>Problems with PDO driver on php-fpm, with nginx on FreeBSD</p>
  
  <p>See php modules:</p>
  
  <pre><code>#php -m
  [PHP Modules]
  ...
  mysql
  mysqli
  mysqlnd
  openssl
  pcre
  PDO
  pdo_mysql &lt;-is here 0_o
  pdo_sqlite
  Phar
  posix
  Reflection
  session
  SimpleXML
  SPL
  sqlite3
  ...
  
  [Zend Modules]
  </code></pre>
  
  <p>PDO is enabled:
      # php --ri pdo</p>
  
  <pre><code>PDO
  
  PDO support =&gt; enabled
  PDO drivers =&gt; mysql, sqlite
  </code></pre>
  
  <p>PHP FPM information</p>
  
  <pre><code># php-fpm -i
  ...
  PDO
  
  PDO support =&gt; enabled
  PDO drivers =&gt; mysql, sqlite
  
  pdo_mysql
  
  PDO Driver for MySQL =&gt; enabled
  Client API version =&gt; mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
  
  Directive =&gt; Local Value =&gt; Master Value
  pdo_mysql.default_socket =&gt; /tmp/mysql.sock =&gt; /tmp/mysql.sock
  
  pdo_sqlite
  
  PDO Driver for SQLite 3.x =&gt; enabled
  SQLite Library =&gt; 3.8.7.2
  ...
  </code></pre>
  
  <p>And i take this error:</p>
  
  <pre><code>2014/12/24 21:46:17 [error] 99501#0: *3930 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught exception 'PDOException' with message 'could not find driver
  ' in /usr/home/anmall/bitmachinegewerh/client/lib/user/profile.php:22
  Stack trace:
  #0 /usr/home/anmall/bitmachinegewerh/client/lib/user/profile.php(22): PDO-&gt;__construct('mysql:host=loca...', '***', '****', Array)
  #1 /usr/home/anmall/bitmachinegewerh/client/public/awesome.php(10): User-&gt;connectDB()
  #2 {main}
    thrown in /usr/home/anmall/bitmachinegewerh/client/lib/user/profile.php on line 22" while reading response header from upstream, client: 46.48.252.89, server: bitmach
  inegewerh.su, request: "POST /client/public/awesome.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "bitmachinegewerh.su", referrer: "http://bitmachinegewerh
  .su/client/public/login.php"
  </code></pre>
  
  <p>Finally i dont see PDO_Mysql driver in phpinfo();</p>