LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2017, 10:51 AM   #1
KewlCat
LQ Newbie
 
Registered: Aug 2015
Distribution: Slackware
Posts: 17

Rep: Reputation: Disabled
PHP 7.1 in /testing » "Unable to load dynamic library mysqli.so"


PHP 7.1 is available, and it's great !

... BUT ...

When starting /etc/rc.d/rc.php-fpm I get the following error :
Code:
<br />
<b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysqli.so' -
/usr/lib64/php/extensions/mysqli.so: undefined symbol: mysqlnd_global_stats in <b>Unknown</b> on line
<b>0</b><br />
In /etc/php.ini, lines 908-909, I have
Code:
extension=mysqli.so
extension=mysqlnd.so
... and by inverting their order, the warning disappears (and mysqli works)

Solution :
Code:
...
extension=mysqlnd.so
extension=mysqli.so
...

Last edited by KewlCat; 11-28-2017 at 10:53 AM.
 
Old 11-29-2017, 04:20 AM   #2
KewlCat
LQ Newbie
 
Registered: Aug 2015
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: Disabled
Today's Changelog.txt
Code:
Wed Nov 29 08:15:09 UTC 2017
(...)
testing/packages/php-7.1.12-x86_64-2.txz:  Rebuilt.
  Load mysqlnd.so before mysqli.so in etc/php.ini*. Thanks to KewlCat.
  Load libphp7.so in mod_php.conf.example. Thanks to Willy Sudiarto Raharjo.
👍

Thank you !
 
3 members found this post helpful.
Old 05-21-2019, 09:54 AM   #3
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by KewlCat View Post
PHP 7.1 is available, and it's great !

... BUT ...

When starting /etc/rc.d/rc.php-fpm I get the following error :
Code:
<br />
<b>Warning</b>:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/mysqli.so' -
/usr/lib64/php/extensions/mysqli.so: undefined symbol: mysqlnd_global_stats in <b>Unknown</b> on line
<b>0</b><br />
In /etc/php.ini, lines 908-909, I have
Code:
extension=mysqli.so
extension=mysqlnd.so
... and by inverting their order, the warning disappears (and mysqli works)

Solution :
Code:
...
extension=mysqlnd.so
extension=mysqli.so
...

Thank You for providing the solution. I was struggling with a newly updated php 7 for a Slackware 14.2 nextcloud server and I had a similar problem. Inverting the order to extensions worked for me as well.

Last edited by ChrisAbela; 05-21-2019 at 09:57 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] PHP Warning || Unable to load dynamic library '/usr/lib64/php/modules/ffmpeg.son' taru.tarak Linux - Newbie 4 08-29-2017 08:04 AM
PHP Startup: Unable to load dynamic library kohshan99 Linux - Software 1 04-16-2015 05:11 AM
PHP Warning: PHP Startup: Unable to load dynamic library jojanmpaul Linux - Newbie 2 11-20-2014 12:37 AM
PHP Warning: PHP Startup: Unable to load dynamic library jojanmpaul Linux - Newbie 2 03-01-2014 05:02 AM
PHP Warning: Unable to load dynamic library xbaez Linux - Software 3 02-15-2005 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration