CWP - Help to install Memcached

  • Hi,

    My CWP webserver is Nginx & Varnish & Apache with NGINX as a main server and forced to use PHP-FPM

    Please help me to install and activate Memcached.

    I also followed your guide but it doesn't work (on my PHP info not have Memcached):

    I also have installed php-pecl-memcache and libevent and libevent-devel and php73-php-pecl-memcached.x86_64 it's correct ?

    Please help me, thank you.

  • I have resolved !

  • glad to know it is resolved.

    here is the procedure :

    First install libmemcached

    cd /usr/local/src
    tar -zxvf libmemcached-1.0.18.tar.gz
    cd libmemcached-1.0.18
    make && make install

    then install memcached from pecl

    cd /usr/local/src
    rm -rf memcached*
    curl -o memcached.tgz
    tar -xf memcached.tgz
    cd memcached-*
    ./configure --with-php-config=/opt/alt/php-fpm73/usr/bin/php-config
    make && make install

    ensure you've memcached.ini created with here /opt/alt/php-fpm73/usr/php/php.d/ - run the command to create memcached.ini :

    grep "" /opt/alt/php-fpm73/usr/php/php.d/memcached.ini 2> /dev/null 1> /dev/null|| echo "" > /opt/alt/php-fpm73/usr/php/php.d/memcached.ini

  • Hi, "sandeep" you are the number ONE, your solution works perfectly, thanks you !

Recent Topics