APCu PHP Extension for Plesk PHP 7
This article describes how to install the PHP APCu extension for Plesk Obsidian on Linux. Installation requires a shell session as the root user.
Before installing PHP extensions, you should create a server snapshot so that you can roll back the installation with just a few clicks in case of an error. Server Snapshots
Installing the APCu Extension
apt install plesk-php74-dev zlib1g-dev gcc make After installing the required dependencies, APCu must be installed separately for each PHP version:
/opt/plesk/php/7.4/bin/pecl install apcu After installation, the new extension must be added to the PHP configuration:
echo "extension=apcu.so" > /opt/plesk/php/7.4/etc/php.d/apcu.ini To enable the new configuration via the Plesk web interface, the PHP handlers must be reloaded:
plesk bin php_handler --reread Next, the affected PHP handlers must be restarted to use the new APCu module:
Warning: Restarting the PHP modules will terminate and restart all running PHP processes. If you are performing this installation on a production system, we recommend making this change at night.
systemctl restart plesk-php74-fpm