• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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