How to install APCu module on Plesk server?

Created:

2017-05-11 12:19:51 UTC

Modified:

2017-08-16 17:12:40 UTC

2

Was this article helpful?


Have more questions?

Submit a request

How to install APCu module on Plesk server?

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk Onyx for Linux
  • Plesk Onyx 17.5 for Linux

Question

How to install APCu module on Plesk server?

Answer

  1. Make sure that required packages are installed:
    # yum install plesk-php70-devel zlib-devel gcc
  2. Install APCu:
    # /opt/plesk/php/7.0/bin/pecl install apcu
  3. Enable APCu in php.ini:
    # echo "extension=apcu.so" > /opt/plesk/php/7.0/etc/php.ini
  4. Refresh PHP handlers information and restart PHP 7.0 service:
    # plesk bin php_handler --reread
    The information about PHP handlers was successfully updated.

    # service plesk-php70-fpm restart
    Redirecting to /bin/systemctl restart  plesk-php70-fpm.service

    # service plesk-php70-fpm status
    Redirecting to /bin/systemctl status  plesk-php70-fpm.service
    ● plesk-php70-fpm.service - The PHP 7.0.18 FastCGI Process Manager
      Loaded: loaded (/usr/lib/systemd/system/plesk-php70-fpm.service; enabled; vendor preset: disabled)
      Active: active (running) since Thu 2017-05-11 18:48:34 +07; 13min ago
  5. Make sure that APCu is shown in phpinfo() : Subscriptions > example.com > PHP Settings >  View the phpinfo() page .

NOTE : APCu is not officially supported by Plesk and was not tested. Use it at your own risk.

Have more questions? Submit a request
Please sign in to leave a comment.