• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Install lz4 for phpredis

nookyyy

New Pleskian
Server operating system version
Debian 11.6
Plesk version and microupdate number
18.0.50
Hey,

as pecl does not support lz4 yet (at least i couldnt find it) i wonder if theres a way to add this extension manually to plesks php handlers (8.x) so i can use it with phpredis

cheers
 
Thanks for your feedback - and how can i get phpredis to be compiled with lz4 support afterwards ? same process i assume ? But i have to uninstall it first with pecl ?
 
Thanks for your feedback - and how can i get phpredis to be compiled with lz4 support afterwards ? same process i assume ? But i have to uninstall it first with pecl ?
Already found my answer - for anyone with the same problem:
1. Install lz4 - GitHub - kjdev/php-ext-lz4: LZ4 Extension for PHP

Bash:
# git clone --recursive --depth=1 https://github.com/kjdev/php-ext-lz4.git
# cd php-ext-lz4
# phpize
# ./configure
# make
# make install

2. Install liblz4 - Package liblz4-dev

Bash:
# sudo apt-get update
# sudo apt-get install liblz4-dev

3. Install phpredis - phpredis/phpredis
Bash:
# git clone https://github.com/phpredis/phpredis.git
# cd phpredis
# phpize
# ./configure [--enable-redis-igbinary] [--enable-redis-msgpack] [--enable-redis-lzf [--with-liblzf[=DIR]]] [--enable-redis-zstd]
# make && make install

FOR ./configure i used --enable-redis-igbinary --enable-redis-zstd --enable-redis-lz4 --with-liblz4

4. Copy / move the .so files to the plesk modules dir - Location ( in this case for php8.2 ):
/opt/plesk/php/8.2/lib/php/modules

5. Add the extensions to php.ini ( in this case for php8.2 )

Bash:
# echo "extension=redis.so" > /opt/plesk/php/8.2/etc/php.d/redis.ini
# echo "extension=lz4.so" > /opt/plesk/php/8.2/etc/php.d/lz4.ini

6. Refresh the information about PHP handlers in Plesk

Bash:
# plesk bin php_handler --reread
~ "The information about PHP handlers was successfully updated."
# service plesk-php82-fpm restart
# service nginx restart
# service apache2 restart

7. Refresh the information about server components in Plesk

Bash:
# plesk sbin packagemng -sdf

et voila
 
Back
Top