Missing packages on Ubuntu 12.04 with PHP 5.4 - php

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

Related

PHP Warning: PHP Startup: imagick: Unable to initialize module

I have read similar issues but I believe that the solution to mine might be new:
I have recently upgraded my Windows 10 to PHP 8.2.1, and today I added extension=ext/php_imagick to php.ini, and when running php -v I get the following error:
Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20220829
These options need to match
I have tried downgrading to PHP 8.1, but the module API version was still more recent, plus I have been downloading Imagick from sources that said it was compatible with PHP 8.2...
I have tried installing the latest version of Imagick from various sources, following this guide, but I keep getting the error.
Thinking that there might not be yet an official packaged version of Imagick compiled with the latest module API, I have been following this guide to compile Imagick by myself, I have put the bin folder URL into the Path, relaunched the command prompt and this time received the error:
the procedure entry point MagickSetSeed could not be located
That was my whole day, I am out of ideas...

Phalcon install failed

I want to install phalcon, so followed this step:
I download the phalcon_x64_vc15_php7.4_nts.zip.zip, from here(https://github.com/phalcon/cphalcon/releases/tag/v5.0.0-alpha.2)
I go to this pages(https://pecl.php.net/package/psr/1.1.0/windows) to download 7.3 Non Thread Safe (NTS) x64
put php_phalcon.dll、php_psr.dll、php_psr.pdb inside php\ext
and then I modify the php.ini with this
extension=php_psr.dll
extension=php_phalcon.dll
Phalcon is not install successfully, the error shows PHP Warning: PHP Startup: Unable to load dynamic library 'php_psr.dll'、Warning: PHP Startup: Unable to load dynamic library 'php_phalcon.dll'
This is my PHP version.
Can someone help me to solve it? Thanks.
You are trying to download phalcon v5.0.0-alpha.2 which is compatible with php version 7.4 (minimum). Try either upgrading to PHP 7.4 or try downgrading your phalcon version.
https://github.com/phalcon/cphalcon/releases/tag/v4.1.2
Here you can download and use V4.1.2 which supports PHP version 7.3 and 7.4

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

MongoDB conifg issues at lampp ubuntu 13.04

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.

Categories