areyouready344
asked on
how to stop this PHP warning message?
I get the following PHP warning message when executing the PHP command below. How can I overcome this warning message?
# php test2.php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/msql i.so' - /usr/lib/php/modules/msqli .so: cannot open shared object file: No such file or direc0
PHP Warning: Module 'mysqli' already loaded in Unknown on line 0
object(MyClass)#1 (0) {
# php test2.php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/msql
PHP Warning: Module 'mysqli' already loaded in Unknown on line 0
object(MyClass)#1 (0) {
ASKER
After commenting out -->> ;extension=mysql.so
I no longer get the following warning message
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/msql i.so' - /usr/lib/php/modules/msqli .so: cannot open shared object file: No such file or direc0
However, I still get the following message:
PHP Warning: Module 'mysqli' already loaded in Unknown on line 0
I no longer get the following warning message
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/msql
However, I still get the following message:
PHP Warning: Module 'mysqli' already loaded in Unknown on line 0
Does the php.ini also contains the line 'extension=mysqli.so' twice?
Or otherwise does it get loaded for the second time at runtime using the dl function somewhere?
Or otherwise does it get loaded for the second time at runtime using the dl function somewhere?
ASKER
# find / -name mysqli.so
/usr/lib/php/modules/mysql i.so
Also, the php.ini only show one location of this value
extension=/usr/lib/php/mod ules/mysql i.so
This one is commented out
;extension=msqli.so
/usr/lib/php/modules/mysql
Also, the php.ini only show one location of this value
extension=/usr/lib/php/mod
This one is commented out
;extension=msqli.so
ASKER
okay I commented out
;extension=/usr/lib/php/mo dules/mysq li.so
and the message no longer show up...
thanks for leading me in the right direction but I thought I need this value mysqli.so?
;extension=/usr/lib/php/mo
and the message no longer show up...
thanks for leading me in the right direction but I thought I need this value mysqli.so?
What version of Linux are you using? Some of them do things differently.
ASKER
I'm using centOS 6
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hmm... I did not see any "magic bullets" but maybe something in the man pages will turn up.
http://www.php.net/manual/en/mysqli.setup.php
Sometimes this little script is useful:
http://www.php.net/manual/en/mysqli.setup.php
Sometimes this little script is useful:
<?php phpinfo();
Ruben.