Skip to main content

Thread: PHP Expect Module Not Loading - Solved


had issue ubuntu 12.04 expect module not loading, thereby causing php scripts programmed expect function fail undefined function error messages. issue libexpect.php5 package. there download available ppa source - libexpect-php5 0.3.1-2ppa1 fixed issue me.

steps

1. check php command see if expect.so module loaded

php -m


can write php file , populate phpinfo() function see modules loaded, php -m cli quicker

2. if step should show module failed load due fact not find libexpect.so.5.44.1.14 or other version. if not, post not help

3. add ppa source access latest libexpect.so code following commands

sudo apt-add-repository ppa:coldfff/libexpect-php5;
sudo apt-get update;
sudo apt-get dselect-upgrade;

4. reload apache2

sudo invoke-rc.d apache2 reload

5. re-run "php -m" command via cli. failed load modules. copy name of libexpect-php5.so.xx.xx error message , issue following command

cd /usr/lib
sudo ln -s libexpect.so.5.45 libexpect.so.5.44.1.14

##note: change symbolic name (second argument) whatever version provided in error message. additionally actual filename (1st argument should match installed in filesystem.

6. reload apache2 1 more time

sudo invoke-rc.d apache2 reload

7. check see if php module loaded

php -m or phpinfo()


lastly, debugging php, issue tail -f command on apache error log file

tail -f /var/log/apache2/error.log

hope helps!



Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk PHP Expect Module Not Loading - Solved


Ubuntu

Comments

Popular posts from this blog

Adobe Acrobat Pro , Terminal Server Use

Thread: transmission-daemon isn't playing nice: "409: Conflict"

Thread: gpg: Conflicting Commands