• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • 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.
  • The ImunifyAV extension is now deprecated and no longer available for installation.
    Existing ImunifyAV installations will continue operating for three months, and after that will automatically be replaced with the new Imunify extension. We recommend that you manually replace any existing ImunifyAV installations with Imunify at your earliest convenience.

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