PHP Startup: Unable to load dynamic library 'pdo-sqlite.so' - php

I found these issues after updating php5-sqlite (previously it was working fine) :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo_sqlite.so' - /usr/lib/php5/20131226/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/sqlite3.so' - /usr/lib/php5/20131226/sqlite3.so: undefined symbol: sqlite3_enable_load_extension in Unknown on line 0
p.s : so files exist
Details :
OS : Ubuntu 14.04 LTS
PHP : PHP 5.6.15
I have tried uninstalling (purge) and reinstalling PHP but the issues still remain.
I have tried commenting out extension=pdo-sqlite.so in /etc/php5/cli/conf.d/pdo_sqlite.ini, but it says "Driver not found".
Please help...

If you have built SQLite from source? Then, you forgot to enable Column metadata. Recompile SQLite with
CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" ./configure
make
sudo make install
Have fun using the cutting edge SQLite.
Reference - https://www.sqlite.org/compile.html#enable_column_metadata

Related

MongoDB extension not loading

When I install php mongodb extension on my windows, a warning is generated, however it works in CLI though. Would andyone give me any advice? Thanks!
PHP Warning: PHP Startup: Unable to load dynamic library
'd:/AppServ\\php5\\ext\\php_mongodb.dll' -
\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd
\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd
\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3\r\n in Unknown on line 0

Zend_framework-Issue with loading mysql.so extension (_zend_list_find )

I'm trying to install mysql.so extension for php 7.0. Unfortunately, I have this problem:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/mysql.so' - /usr/lib/php/20151012/mysql.so: undefined symbol: _zend_list_find in Unknown on line 0.
I've searched internet for the solution and I didn't find anything. I tried also installing zend-framework, but nothing happened.

MongoDB PHP Driver Install (OS X El Capitan)

I've been wrestling with the MongoDB PHP Driver install for most of this afternoon.
I'm using PHP version 5.5, and I've installed the MongoDB PHP Driver using brew install php55-mongo (although I tried other methods before). The problem is, whenever I try to use MongoClient() I get the error:
Class 'MongoClient' not found
The module "mongo" is listed when I run php -m, but I also get the following warnings:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so' - dlopen(/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so' - dlopen(/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php55-mongodb/mongodb.so' - dlopen(/usr/local/opt/php55-mongodb/mongodb.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php55-mongodb/mongodb.so' - dlopen(/usr/local/opt/php55-mongodb/mongodb.so, 9): image not found in Unknown on line 0
The module isn't listed when I use phpinfo() or get_loaded_extensions().
Any ideas?
Check which php mongo driver you have installed. It seems like you have installed new php mongo driver and for that you need to add mongodb.so extension instead of mongo.so also you
As reffered in PHP manual
The MongoClient class
(PECL mongo >=1.3.0)
Warning
This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include:
MongoDB\Driver\Manager

PHP 7: Redis extenstion doesn't load (PHP Startup: Unable to load dynamic library)

Recently, I've upgraded PHP to version 7.0.4. After that I tried to re-install Redis client (PHP Redis) by following steps similar to these instructions.
However, when I run PHP I get the following error:
$ php -v
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/redis.so' - /usr/lib/php/20151012/redis.so: undefined symbol: zval_used_for_init in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/redis.so' - /usr/lib/php/20151012/redis.so: undefined symbol: zval_used_for_init in Unknown on line 0
Does anyone have an idea how to solve this?
In beginning of march 2016 stable branch of phpredis does not support php7. But you can use it with php7-brunch. It still has some bugs but actually can be used.

Vagrant php5-mysql not working

I'm running a Virtualbox Environment (laravel project) that I haven't touched in a while.
When I SSH into vagrant and try running the 'php' command, I get the following error:
vagrant#sched:/etc/php5/mods-available$ php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/pdo_mysql.so' - /usr/lib/php5/20100525+lfs/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
^C
vagrant#sched:/etc/php5/mods-available$ php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/pdo_mysql.so' - /usr/lib/php5/20100525+lfs/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
Any ideas where to proceed from here? I tried to purge my php5 and php5-mysql installations and re-installing, but it seems that didn't do anything.

Categories