PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/msqli.so'

后端 未结 2 920
离开以前
离开以前 2021-01-28 07:34

Looked at all the articles on search for this and no answers that work -- on Ubuntu 16.04 I\'m getting:

PHP Warning:  PHP Startup: Unable to load dynami         


        
相关标签:
2条回答
  • 2021-01-28 08:04

    It seems that uninstalling all versions of php with

    sudo apt-get purge `dpkg -l | grep php | awk '{print $2}' | tr "\n" " "`` 
    

    and only installing the latest version with

    apt install php libapache2-mod-php php-mysql php-xml php-soap php-gd php-mbstring
    

    solved the problem for me.

    0 讨论(0)
  • 2021-01-28 08:06

    Solved it with help from this post.

    Changed php.ini:

    extension=/usr/lib/php/20151012/mysqli.so
    extension=/usr/lib/php/20151012/mysqlnd.so
    

    to

    extension=/usr/lib/php/20151012/mysqlnd.so
    extension=/usr/lib/php/20151012/mysqli.so
    

    ie: reversed the order of the 2 entries to put mysqlnd.so first.

    Now I am all happy and telecomputing with alacrity and enthusiasm.

    0 讨论(0)
提交回复
热议问题