How to install/uninstall memcached or memcache extension for PHP on Plesk server?




  • Avatar
    Gabriel De León (Edited )

  • Avatar
    Gabriel De León

    Good morning,

    Is it possible to install memcached for the php 7.0.22 OS vendor?

    This article is fine, but it does not say how to install the module for your PHP 7.0.22 and I would need it.

    I have reviewed information and it is possible to compile it manually but I do not know if this will cause problems with your PLESK system.

    Can you confirm these points? Thank you very much.

  • Avatar
    Bulat Tsydenov

    @Gabriel De León, Hi!
    The article has been modified. Please check the instructions.

  • Avatar

    Hi Bulat, thank you very much!

  • Avatar
    Florian Thiel

    tried to follow the instruction for PHP 7.1 with Plesk 17.5.3 Update #38 on Ubuntu 14.04.5 but it stops with

    configure: error: no, libmemcached sasl support is not enabled. Run configure with --disable-memcached-sasl to disable this check.

    Tried with this flag but doesn't help. Any ideas?

  • Avatar
    Ivan Postnikov

    @Florian Thiel

    The libmemcached package for Ubuntu 14.04 does not support SASL authentication.
    Which error is displayed with the option -disable-memcached-sasl?

  • Avatar
    Florian Thiel

    @Ivan Postnikov

    the same error, it seems like the option is not detected. Tried it with -disable-memcached-sasl and --disable-memcached-sasl

  • Avatar
    Ivan Postnikov

    @Florian Thiel


    The issue requires mo detailed investigation, consider contacting Plesk Support.

    Also, consider contacting Ubuntu Support, as they are professionals in their product.

  • Avatar
    Peter Westerlund

    Have installed it (on php 5.4 for centos) but can't start the server. Can't find the folder where it's installed. Where is it?

  • Avatar
    Robert Asilbekov

    @Peter Westerlund

    The article is about installing php extension for memcached,  it is supposed that memcached server already installed. I think you just need to install memcached daemon.


    # yum install memcached


    # apt-get install memcached

    You may also look at the blog post:

  • Avatar
    Miha Gregorš

    After regular updates of php 5.6 I noticed that memcached stop working. I got error:

    PHP Warning:  PHP Startup: Unable to load dynamic library '/opt/plesk/php/5.6/lib64/php/modules/' - /opt/plesk/php/5.6/lib64/php/modules/ cannot open shared object file: No such file or directory in Unknown on line 0

    It looks like update of package remove my memcached :)

    Has anyone experienced similarly problem?

  • Avatar
    Alexandr Tumanov

    @Miha, there is a possibility that package update removed the whole PHP folder taking the memcached. Please vote for adding it to Plesk packages 

  • Avatar

    Package "plesk-php70-dev" or  "plesk-php71-dev" or  "plesk-php72-dev" not available for Debian 9 "stretch". Any chance on adding them?

  • Avatar
    Ivan Postnikov

    @Kevin, make sure you do not have custom repositories on the server because the issue was not reproduced on a test server:

    # lsb_release -a

    No LSB modules are available.
    Distributor ID: Debian
    Description: Debian GNU/Linux 9.4 (stretch)
    Release: 9.4
    Codename: stretch
    # apt-get install plesk-php71-dev
    # dpkg -l | grep plesk-php71-dev
    ii plesk-php71-dev 7.1.16-debian9.0.18033013

  • Avatar
    Pascal Devif


    Thanks for this tutorial.
    On debian 9, how to configure Memcached parameters (like memory) ?
    I found nothing in /etc


  • Avatar
    Pavel Mikhaylov

    Hello Pascal,

    Questions about configuration of Memcached is best to address to the developers/support of the package:

  • Avatar
    Graham Jones

    I have followed the instructions perfectly, but memcached does not install.

    I get the following error:


    sh: 1: phpize: not found ERROR: `phpize' failed 


    I am using Debian 8.11 with Plesk 17.8.11


    Any ideas?



  • Avatar
    William (Edited )


     Centos6 /php5.6 server- was trying to install memcached extension   to be able to run WP caching

    Was following the above  instructions until i got to  # /opt/plesk/php/5.6/bin/pecl install memcached-2.2.0

    which yielded -bash: /opt/plesk/php/5.6/bin/pecl: No such file or directory

    only pecl i could find was /usr/share/psa-pear/pear/pecl

    I could yum install php-pear..  ? which would then  give  me /usr/bin/pecl   as well..

    Either way i am  nervous about conflicting versions and  breaking plesk and unsure how to proceed..




  • Avatar
    Ivan Postnikov

    Hi @Graham, it seems that you have skipped the preparation step to install required packets:

    # apt install autoconf automake gcc libmemcached-dev libhashkit-dev pkg-config plesk-php56-dev plesk-php70-dev zlib1g-dev

  • Avatar
    Graham Jones


    Many thanks. Whoops...! That has now solved it.

  • Avatar
    Ivan Postnikov

    Hi @Graham, glad to hear that this helped =)

  • Avatar
    Ivan Postnikov

    Hello @William,

    As I have checked on the test server with CentOS 6, when PHP 5.6 is installed, this file exists on the file system.

    Please, make sure that PHP 5.6 is installed in Plesk. If it is installed, try reinstalling it, it should resolve the issue.

Please sign in to leave a comment.

Have more questions? Submit a request