Page 1 of 1

PHP Redis -Modul und PHP -Kompilierung Mismatch Compile

Posted: 03 Mar 2025, 00:18
by Anonymous
Ich versuche, PHP-Redis über Pecl zu installieren.

Code: Select all

php -i | grep API
Gibt Folgendes an: PHP API => 20220829
I Führen Sie dann die Pecl -Installation von Redis aus und ich erhalte die Nachricht:

Code: Select all

...
running: phpize
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
...
Build process completed successfully
Installing '/usr/lib/php/20230831/redis.so'
install ok: channel://pecl.php.net/redis-6.0.2
Extension redis enabled in php.ini
< /code>
Wie Sie sehen können, gibt es ein Missverhältnis zwischen den APIs. Grep Redis 
, ich erhalte diese Fehlermeldung:

Code: Select all

PHP Warning:  PHP Startup: redis: Unable to initialize module
Module compiled with module API=20230831
PHP    compiled with module API=20220829
These options need to match
in Unknown on line 0
Ich bin auf Php8.2, also ist API 20220829 korrekt.>