title: Installing php5.6-redis on Ubuntu 16.04
body: <p>We are upgrading from ubuntu 14 to ubuntu 16, but are encountering problems installing php-redis. We're trying to get php-redis for php 5.6 but php-redis for php8.0 is being installed instead. When specifying the version e.g.</p>
  <pre><code>sudo apt-get install php5.6-redis
  </code></pre>
  <p>we get the following error:</p>
  <pre><code>Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  E: Unable to locate package php5.6-redis
  E: Couldn't find any package by glob 'php5.6-redis'
  E: Couldn't find any package by regex 'php5.6-redis'
  </code></pre>
  <p>we looked into <a href="https://launchpad.net/%7Eondrej/+archive/ubuntu/php/" rel="nofollow noreferrer">https://launchpad.net/~ondrej/+archive/ubuntu/php/</a> but it seems this would only work for ubuntu 18+</p>
  <p>any help is much appreciated on how we can install php-redis for php 5.6 on ubuntu 16</p>