php - Fatal error: Call to undefined function expect_popen() -
since upgrade php 5.5.9 5.6 on ubuntu 14.04 lts server have been getting problems expect library php. keeps displaying fatal error in description. believe package need libexpect-php5. installation checks confirm installed:
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
and
root@k1:/etc/php5/conf.d$ expect -v expect version 5.45
and expect.so files:
root@k1:/usr/lib$ ls | grep expect libexpect.so libexpect.so.5 libexpect.so.5.45
and /etc/php5/apache2/php.ini file:
extension=expect.so
i had install libexpect-ph5 downloading , installing .deb file manually, because erring uninstallable dependency api... when , apt-get update && apt-get upgrade keeps telling me this:
the following packages have been kept back: libexpect-php5
just installing package something, system still keep package back. leaves me php version doesn't know expect_popen() function.
how solve this?
i found out apache2 loading wrong php.ini file. since upgrade php 5.6 path has changed (of course).
old location:
/etc/php/apache2/php.ini
new location:
/etc/php/5.6/apache2/php.ini
along had specify exact path expect.so extension in php.ini.
Comments
Post a Comment