title: Php apcu for different version
body: <p>I have several php version. And I need install apcu and apc for both php version. I installed </p>
  
  <pre><code>pecl install apcu
  pecl install apcu_bc-beta
  </code></pre>
  
  <p>and after this in <code>/usr/lib/php/20170718/</code> have <code>apcu.so</code> and <code>apc.so</code>
  And I added <code>/etc/php/7.2/mods-available/apcu.ini</code> with this content</p>
  
  <pre><code>extension=apcu.so
  extension=apc.so
  apc.enabled=1
  apc.shm_size=256M
  apc.ttl=7200
  apc.enable_cli=1
  apc.gc_ttl=3600
  apc.entries_hint=4096
  apc.slam_defense=1
  apc.serializer=php
  </code></pre>
  
  <p>and when I have been enable php 7.2 evrything worked fine. I see apc in <code>phpinfo</code> - apache and in php cli in console</p>
  
  <p>but then I added the same ini file in <code>php 7.1</code> and have error when run <code>php -m</code></p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: Unable to load dynamic library 
        /usr/lib/php/20160303/apcu.so' - /usr/lib/php/20160303/apcu.so: cannot open shared object file: No such file or directory in Unknown
    on line 0
        PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/apc.so' - /usr/lib/php/20160303/apc.so: cannot
    open shared object file: No such file or directory in Unknown on line
    0
        PHP 7.1.18-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jun 11 2018 14:23:29) ( NTS )</p>
  </blockquote>
  
  <p>and it's true in <code>/usr/lib/php/20160303</code> I don't have apc and apce so files. Because I have this both files in <code>/usr/lib/php/20170718/</code></p>
  
  <p>I changed <code>/etc/php/7.1/mods-available/apcu.ini</code> to </p>
  
  <pre><code>extension=/usr/lib/php/20170718/apcu.so
  extension=/usr/lib/php/20170718/apc.so
  apc.enabled=1
  apc.shm_size=256M
  apc.ttl=7200
  apc.enable_cli=1
  apc.gc_ttl=3600
  apc.entries_hint=4096
  apc.slam_defense=1
  apc.serializer=php   
  </code></pre>
  
  <p>and have error</p>
  
  <blockquote>
    <p>PHP Warning:  PHP Startup: apcu: Unable to initialize module
        Module compiled with module API=20170718
        PHP    compiled with module API=20160303
        These options need to match
         in Unknown on line 0
        PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20170718/apc.so' - /usr/lib/php/20170718/apc.so:
    undefined symbol: zif_apcu_store in Unknown on line 0
        PHP 7.1.18-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jun 11 2018 14:23:29) ( NTS )</p>
  </blockquote>
  
  <p>could somebody help me enable apcu and apc for <code>php 7.1</code> ?</p>