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

  • plesk
  • 15 Users Found This Useful
Was this answer helpful?

Related Articles

Connecting using PuTTY on Windows workstations

Configuring PuTTY In PuTTY, under Session, enter your Host Name Under Connection choose Data...

How to install the php-mcrypt module on a Plesk server

Question How to install the php-mcrypt module on a Plesk server? Answer Notes: The solution in...

Windows: Accessing Your Server with Remote Desktop

This article explains how to use Remote Desktop to access your Windows server’s desktop from...

What is Reverse DNS?

Reverse DNS (rDNS) is name resolution that looks up an IP addresses to obtain a domain name,...

What is Reverse DNS?

Reverse DNS (rDNS) is name resolution that looks up an IP addresses to obtain a domain name,...