by Anonymous » 03 Mar 2025, 00:18
Ich versuche, PHP-Redis über Pecl zu installieren.
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.>
Ich versuche, PHP-Redis über Pecl zu installieren.[code]php -i | grep API
[/code]
Gibt Folgendes an: PHP API => 20220829
I Führen Sie dann die Pecl -Installation von Redis aus und ich erhalte die Nachricht:
[code]...
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 [/code], ich erhalte diese Fehlermeldung:
[code]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
[/code]
Ich bin auf Php8.2, also ist API 20220829 korrekt.>