title: How to configure PHP 7 - Apache with MySQL PDO driver in Debian Docker image?
body: <p>I'm using official docker images for PHP 7 (7.0.3-Apache) and MySql (5.7.10).
  Using docker-compose, created containers from images and linked both.</p>
  
  <p>Copied php.ini from <a href="https://github.com/php/php-src/blob/php-7.0.3/php.ini-production" rel="nofollow">https://github.com/php/php-src/blob/php-7.0.3/php.ini-production</a>, replaced <em>dll</em> extensions with <em>so</em> and placed that file in <em>/usr/local/etc/php</em> and enabled _pdo_mysql_ extension in it.
  <code>extension=php_pdo_mysql.so</code></p>
  
  <p><em>phpinfo</em> shows <em>php.ini</em> loaded but not <em>pdo_mysql</em> extension because it's not installed.</p>
  
  <p>I googled and tried different extension names with <code>apt-get install</code>:
  <code>php-mysql</code>, <code>php7-mysql</code>, <code>php7.0-mysql</code>, <code>php7.0.3-mysql</code>.</p>
  
  <p>None of them works. Error says: <code>E: Unable to locate package</code>.</p>
  
  <p>With <code>php5-mysql</code>, it's get installed but after restarting apache with command: <code>docker kill --signal="USR1" &lt;container-name&gt;</code>, extension doesn't show loaded in <em>php.ini</em>.</p>
  
  <p>(Don't think it's much related to docker but I'm new to docker and trying with that now, so mentioning it here.)</p>
  
  <p>Can anyone help to configure <em>pdo_mysql</em> extension with <em>php7-Apache</em>?</p>