title: Fatal error: Call to undefined function expect_popen()
body: <p>Since my upgrade from PHP 5.5.9 to 5.6 on my Ubuntu 14.04 LTS server I have been getting problems with the expect library for PHP. It keeps displaying the Fatal error in the description. I believe the package that I need for this is <strong>libexpect-php5</strong>. Some installation checks confirm that it is installed:</p>
  
  <pre><code>root@k1:/etc/php5/conf.d$ dpkg --get-selections | grep -v deinstall | grep expect
  empty-expect                            install
  expect                                  install
  expect-dev                              install
  expect-lite                             install
  libexpect-ocaml                         install
  libexpect-ocaml-dev                     install
  libexpect-perl                          install
  **libexpect-php5**                      install // installed right?
  libexpect-simple-perl                   install
  libghc-hspec-expectations-dev           install
  libghc-hspec-expectations-doc           install
  libghc-hspec-expectations-prof          install
  libnet-scp-expect-perl                  install
  libtest-expect-perl                     install
  netexpect                               install
  python-pexpect                          install
  python-pexpect-doc                      install
  python3-pexpect                         install
  </code></pre>
  
  <p>and</p>
  
  <pre><code>root@k1:/etc/php5/conf.d$ expect -v
  expect version 5.45
  </code></pre>
  
  <p>and the expect.so files:</p>
  
  <pre><code>root@k1:/usr/lib$ ls | grep expect
  libexpect.so
  libexpect.so.5
  libexpect.so.5.45
  </code></pre>
  
  <p>and finally my /etc/php5/apache2/php.ini file:</p>
  
  <pre><code>extension=expect.so
  </code></pre>
  
  <p>I had to install libexpect-ph5 by downloading and installing the .deb file manually, because it was erring about an uninstallable dependency api... Now when I do and <strong>apt-get update &amp;&amp; apt-get upgrade</strong> it keeps telling me this:</p>
  
  <pre><code>The following packages have been kept back:
    libexpect-php5
  </code></pre>
  
  <p>Just installing that package does something, but the system will still keep the package back. This leaves me with a PHP version that doesn't know about the expect_popen() function.</p>
  
  <p>How do I solve this?</p>