Redis PHP extension for Plesk PHP 7
Before installing PHP extensions, a server snapshot should be created so that you can undo the installation with just a few clicks in the event of an error. Server snapshots
To install the PHP Redis extension under Plesk Obsidian for PHP 7.4, first log in to the Plesk server via SSH. Then execute the following commands:
apt update
apt install plesk-php74-dev zlib1g-dev gcc make
Redis must then be installed for the PHP version:
/opt/plesk/php/7.4/bin/pecl install redis
After successful installation, the extension must still be added to the respective PHP configurations so that the extension is available:
echo "extension=redis.so" > /opt/plesk/php/7.4/etc/php.d/redis.ini
To enable the new configuration via the Plesk web interface, the PHP handlers must be reloaded:
plesk bin php_handler --reread
The PHP handlers must then be restarted in order to use the new Redis module:
Warning: Restarting the PHP modules will terminate and restart all running PHP processes. If the installation is carried out on a production system, we recommend making this change at night.
systemctl restart plesk-php74-fpm