MongoDB conifg issues at lampp ubuntu 13.04 - php

I was installing Mongodb on my Ubuntu 13.04 . It was installed and I was configured in my php.ini file. My OS is 32-bit version. But when I start my LAMP it show the following error.
Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so' -
/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/mongo.so:
undefined symbol: zend_new_interned_string in Unknown on line 0
How do i solve this?

It's possible that you compiled the extension against a different version of PHP than the binary you're attempting to load it. Assuming you followed the PECL install instructions, I would suggest you confirm that you only have a single copy of PHP installed on your system, and your configurations are consistent for the web and CLI environments.
Below are some previous threads and bug reports that hint to your error ("undefined symbol: zend_new_interned_string") being a PHP/extension mismatch:
http://www.linuxquestions.org/questions/programming-9/php-gearman-undefined-symbol-zend_new_interned_string-in-unknown-on-line-0-a-941003/
https://github.com/zendtech/ZendOptimizerPlus/issues/72
https://bugs.php.net/bug.php?id=61575
The error is definitely not specific to the MongoDB driver.

Related

MongoDB PHP Driver on OS X Mojave Issues

I'm running the default version of PHP that is packaged with Mojave. PHP 7.1.19. I've installed the PECL mongodb driver 1.5.3. To get the PECL mongodb driver install I had to disable csrutil in recover mode. When csrutil is disabled the driver works. When I re-enable csrutil the driver can no longer be loaded.
I receive this error.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so, 0x0009): code signature in (/usr/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. in Unknown on line 0
From the looks of it, it seems like it's because of an unsigned package. I have no idea what I can do to resolve this issue. Does anyone have any thoughts?
I ended up just tossing out the default mac os version of PHP and used Homebrews PHP 7.2 version. This solved my issues. By using Homebrews version you don't need to turn off csrutil.
Good reference for help with the install.
https://getgrav.org/blog/macos-mojave-apache-multiple-php-versions

Phalcon - undefined symbol: zend_hash_str_del

i already compiled Phalcon framework (version 2.1) for php 5.6 and if i allow the framework in php.ini i got this message.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/phalcon.so' - /usr/lib/php/20131226/phalcon.so: undefined symbol: zend_hash_str_del in Unknown on line 0
compilation works well and without errors
My server setup
Ubuntu
ISPConfig 3
PHP 7.0, PHP 5.6.30
Finally fixed. I download clean project from git and manually edit configure script in build folder to link to php5.6, phpize5.6 and add --with-php-config=/usr/bin/php-config5.6 executables and run classic install from source

Error on upgrading PHP MongoDb driver from mongo v1.6.12 to mongodb v1.4

Since mongo php driver got deprecated, I decided to upgrade my driver( On local machine of ubuntu running XAMPP stack).
To install mongodb driver, I ran following command
pecl install mongodb
I added extension=mongodb.so on php.ini(/opt/lampp/etc/php.ini).
But on restart lampp is was responding. So I checked the apache logs for error and I am getting this
[14-Mar-2016 09:19:43 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mongodb.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/mongodb.so: symbol CRYPTO_get_locking_callback, version OPENSSL_1.0.0 not defined in file libcrypto.so.1.0.0 with link time reference in Unknown on line 0
I am not getting solution for this, the only option I have rigt now is to use old mongo driver. Can someone help

Cant get AMQP to load for apache2 on 64bit linux, php5.4

I have successfully PECL installed AMQP after installing rabbitmq-c as per the instructions at http://www.php.net/manual/en/amqp.installation.php
The .so file is created and I have added it to php.ini, but when I restart apache I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/amqp.so' - /usr/lib/php5/20100525/amqp.so: undefined symbol: amqp_open_socket in Unknown on line 0
This happens on both Ubuntu 12.10 64bit PHP 5.4.6 and Ubuntu 13.04 64bit PHP 5.4.9
It does however work start up as expected on Ubuntu 12.04 32bit PHP 5.3.10
Has anyone managed to get AQMP to install on 64bit PHP 5.4? Does anyone know whether it is the PHP version or the fact that it's a 64bit OS that might be causing the problem?
Thanks
Looks like you don't have librabbitmq installed or librabbitmq version is incompatible with php-amqp extension or library placed in wrong location.

Missing packages on Ubuntu 12.04 with PHP 5.4

I've upgraded PHP to version 5.4 using this guide:
http://www.barryodonovan.com/index.php/2012/05/22/ubuntu-12-04-precise-pangolin-and-php-5-4-again
Now when i hit "$php -v" it throws following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/memcached.so' - /usr/lib/php5/20100525/memcached.so: undefined symbol: memcached_touch in Unknown on line 0
How can i properly install "memcached" library? Package manager reports that i've already got latest version. I even tried to reinstall it to no avail.
You need all extensions in the correct version. We had this problem here before some time. At the moment only the memcache beta supports php5.4 on this site you get a compiled module.
Class 'Memcache' not found & PHP

Categories