How to install APCu module on Plesk server ? - ZirveSunucum Information
Login
Customer Panel
Login
Register

How to install APCu module on Plesk server ?

  1. Connect to the server via SSH.

  2. 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

  3. 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

  4. Enable APCu in PHP configuration:

    # echo "extension=apcu.so" > /opt/plesk/php/7.0/etc/php.d/apcu.ini

  5. Restart PHP service and refresh PHP handlers information:

    # service plesk-php70-fpm restart

    # plesk bin php_handler --reread

  6. Verify that the module is loaded and is working:

    # /opt/plesk/php/7.0/bin/php -i | grep apc.enabled
    apc.enabled => On => On