-
Connect to the server via SSH.
-
Install required development packages:
-
For .deb-based OS (Ubuntu, Debian):
# apt install plesk-php70-dev zlib1g-dev gcc
-
For .rpm-based OS (CentOS, RHEL, CloudLinux):
# yum install plesk-php70-devel zlib-devel gcc
Note: As an example, Plesk PHP 7.0 development package is installed. For a different version of PHP change
php70
to the required version, for instance,php56
-
-
Install APCu module:
-
For Plesk PHP 7.x:
# /opt/plesk/php/7.x/bin/pecl install apcu
-
For Plesk PHP 5.x:
# /opt/plesk/php/5.x/bin/pecl install apcu-4.0.11
-
-
Enable APCu in PHP configuration:
# echo "extension=apcu.so" > /opt/plesk/php/7.0/etc/php.d/apcu.ini
-
Restart PHP service and refresh PHP handlers information:
# service plesk-php70-fpm restart
# plesk bin php_handler --reread
-
Verify that the module is loaded and is working:
# /opt/plesk/php/7.0/bin/php -i | grep apc.enabled
apc.enabled => On => On
- plesk
- 15 Users Found This Useful