title: Add SQLSRV extension on multiple PHP versions on Ubuntu/NGINX
body: <p>I had a server set up with the following installed and running:</p>
  <p>Ubuntu 20.04 <BR>
  NGINX 1.17.10 <BR>
  PHP 7.4.5</p>
  <p>The PHP installation does have the PDO SQLSRV driver installed and working properly.</p>
  <p>I needed to add PHP 5.6 to the same server for an older web site. I was able to successfully install PHP 5.6.  but I can't seem to get the SQLSRV driver part to install properly.</p>
  <p>I had previously installed the mssql tools on the server when setting up PHP 7.4:</p>
  <pre><code>apt-get install msodbcsql17 -y
  apt-get install mssql-tools
   apt install unixodbc-dev
  pecl install sqlsrv
  pecl install pdo_sqlsrv
  </code></pre>
  <p>In trying to set it up for 5.6, I did follow the steps for the original install. I ran the following commands:</p>
  <pre><code> printf &quot;; priority=20\nextension=sqlsrv.so\n&quot; &gt; /etc/php/5.6/mods-available/sqlsrv.ini
   printf &quot;; priority=30\nextension=pdo_sqlsrv.so\n&quot; &gt; /etc/php/5.6/mods-available/pdo_sqlsrv.ini
   phpenmod -v 5.6 sqlsrv pdo_sqlsrv
   pecl config-set php_ini /etc/php/5.6/fpm/php.ini
   ls /etc/php/5.6/fpm/conf.d/*sqlsrv.ini
  </code></pre>
  <p>All commands ran successfully. I then added the following lines to the relevant php.ini file /etc/php/5.6/fpm/php.ini</p>
  <pre><code>extension=sqlsrv.so
  extension=pdo_sqlsrv.so
  </code></pre>
  <p>I reloaded and restarted php5.6-fpm and then restarted NGINX. PHP 5.6 is successfully installed and I can see the info by running phpinfo(). I got no errors during installation. However, under PDO, PDO Drivers is showing no value. I also confirmed that sqlsrv_connect is not recognized.</p>
  <p>I know it would be ideal not to have multiple versions of PHP or to have installed them at separate times, but I didn't have a choice on this project. Do I need to install a separate version of sqlsrv and pdo_sqlsrv on the box, or am I just missing something in the installation?</p>