title: PHP8.1-fpm: pdo-mysql installed but not appear on php -m
body: <p>i have install <strong>php8.1-fpm</strong> and setup it with <strong>apache2/FGPI</strong>. But after many operation, impossible to &quot;<em>enable pdo-mysql</em>&quot;.</p>
  <p>i have make this <code>sudo apt-get install php8.1-pdo-mysql</code></p>
  <p>with result</p>
  <pre><code>Note, selecting 'php8.1-mysql' instead of 'php8.1-pdo-mysql'
  php8.1-mysql is already the newest version (8.1.5-1+b1).
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded
  </code></pre>
  <p>But, when i do <code>php -m</code></p>
  <p>mysql not appear.</p>
  <pre><code>[PHP Modules]
  Core
  curl
  date
  dom
  filter
  gd
  gmp
  hash
  igbinary
  imap
  intl
  json
  libxml
  mbstring
  OAuth
  openssl
  pcntl
  pcre
  redis
  Reflection
  session
  SimpleXML
  sodium
  SPL
  standard
  xdebug
  xml
  xmlreader
  xmlwriter
  xsl
  yaml
  zip
  zlib
  
  [Zend Modules]
  Xdebug
  </code></pre>
  <p>When i try to know why, it seem because Pdo is include on php8.1-common, but ... not appear to.</p>
  <p>An other action that i have doing is to remove php8.1-mysql and reinstall php8.11-pdo-mysql with <code>sudo apt-get install php8.1-pdo-mysql</code>, the result is<a href="https://i.stack.imgur.com/ZT6hI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZT6hI.png" alt="Result of apt-get install" /></a></p>
  <p>but, nothing on <code>mods-available</code></p>
  <p><a href="https://i.stack.imgur.com/xPOw5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xPOw5.png" alt="mods-available" /></a></p>
  <p><strong>EDIT 1</strong>
  When i look with phpinfo() on a php file to use
  php-fpm, i have this result</p>
  <pre><code>/etc/php/8.1/fpm/conf.d/15-xml.ini, 
  /etc/php/8.1/fpm/conf.d/20-curl.ini, 
  /etc/php/8.1/fpm/conf.d/20-dom.ini, 
  /etc/php/8.1/fpm/conf.d/20-gd.ini, 
  /etc/php/8.1/fpm/conf.d/20-gmp.ini, 
  /etc/php/8.1/fpm/conf.d/20-igbinary.ini, 
  /etc/php/8.1/fpm/conf.d/20-imap.ini, 
  /etc/php/8.1/fpm/conf.d/20-intl.ini, 
  /etc/php/8.1/fpm/conf.d/20-mbstring.ini, 
  /etc/php/8.1/fpm/conf.d/20-oauth.ini, 
  /etc/php/8.1/fpm/conf.d/20-redis.ini, 
  /etc/php/8.1/fpm/conf.d/20-simplexml.ini, 
  /etc/php/8.1/fpm/conf.d/20-xdebug.ini, 
  /etc/php/8.1/fpm/conf.d/20-xmlreader.ini, 
  /etc/php/8.1/fpm/conf.d/20-xmlwriter.ini,     
  /etc/php/8.1/fpm/conf.d/20-xsl.ini,         
  /etc/php/8.1/fpm/conf.d/20-yaml.ini, 
  /etc/php/8.1/fpm/conf.d/20-zip.ini
  </code></pre>
  <p><strong>EDIT2</strong>
  When i use <code>php8.1-mysql</code> instead of <code>php8.1-pdo-mysql</code> same result because apt automaticly switch on php8.1-mysql when you try to install pdo-mysql.</p>
  <p><strong>EDIT3</strong>
  The command <code>sudo phpenmod pdo_mysql</code> take the result</p>
  <pre><code>WARNING: Module pdo_mysql ini file doesn't exist under /etc/php/8.1/mods-available
  WARNING: Module pdo_mysql ini file doesn't exist under /etc/php/8.1/mods-available
  </code></pre>
  <p>This is the real problem, that the needed file never been created by <code>sudo apt-get install php8.1-mysql</code></p>