• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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