Vagrant php5-mysql not working - php

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.

Related

PHP Warning: redis.so: undefined symbol: php_json_decode_ex in Unknown on line 0

I just installed the extension as I always did
sudo pecl7 install redis;
and I got this error
sudo php-fpm -t
[11-Jul-2019 20:52:10] NOTICE: PHP message: PHP Warning: PHP Startup:
Unable to load dynamic library '/usr/lib64/php/7.1/modules/redis.so' -
/usr/lib64/php/7.1/modules/redis.so: undefined symbol:
php_json_decode_ex in Unknown on line 0
I'm on an Amazon Linux AMI 2018.03.0
redis extension must be loaded "AFTER" json extension
https://github.com/phpredis/phpredis/issues/1589#issuecomment-508412700
PHP redis extension is probably loaded before json extension.
Check .ini files and put extension=redis.so after extension=json.so

How to properly setup php_gmp on OSX with xampp

I've installed XAMPP on osx 10.10 .
I need php_gmp so i tried to setup it using:
$ brew install php55 --with-gmp
Then, I activated the dependency by modifing php.ini
extension=gmp.so
Apache restarted does not work, so i tried to activate in php.ini:
extension=php_gmp.so
Resterting the server but nothing anyway
PHP error Log
[24-Mar-2016 08:00:26 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/php_gmp.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/php_gmp.so, 9): image not found in Unknown on line 0
[24-Mar-2016 08:00:26 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/gmp.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20121212/gmp.so, 9): image not found in Unknown on line 0
Try reinstalling it but using the code
brew install homebrew/php/php55-gmp

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.

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

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

php-mysqlnd failure on startup

I found php warning in log today.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd_memcache.so' - /usr/lib64/php/modules/mysqlnd_memcache.so: undefined symbol: memcached_strerror in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysqlnd.so' - /usr/lib64/php/modules/pdo_mysqlnd.so: undefined symbol: php_pdo_register_driver in Unknown on line 0
Regarding php info mysqlnd is loaded but without memcached plugin.
It is Centos 6.6
php 5.4.42
mysqlnd 5.0.10
And I do not know what to do since I can not just remove and reinstall due to some complex dependencies.Is it possible to correct it without yum remove/install to keep dependency?
Any help is extremely appreciated.
Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysqlnd.so' - /usr/lib64/php/modules/pdo_mysqlnd.so: undefined symbol: php_pdo_register_driver in Unknown on line 0 –
this fixes by creating file with "extension=pdo.so" in /etc/php.d/

Categories