CWP - How to update APCu from v5.1.12 to the latest and stable APCu v5.1.18



  • Hi,

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

    How to update APCu from v5.1.12 to the latest and stable ACPu v5.1.18 ?

    Thanks in advance for the support.



  • hi
    this will always download the latest version

    follow the steps :

    for php 7.3 :

    cd /usr/local/src
    rm -rf apcu*
    curl https://pecl.php.net/get/APCu -o apcu.tgz
    tar -xf apcu.tgz
    cd apcu-*
    /opt/alt/php-fpm73/usr/bin/phpize
    ./configure --with-php-config=/opt/alt/php-fpm73/usr/bin/php-config
    make && make install
    

    for php 7.2 :

    cd /usr/local/src
    rm -rf apcu*
    curl https://pecl.php.net/get/APCu -o apcu.tgz
    tar -xf apcu.tgz
    cd apcu-*
    /opt/alt/php-fpm72/usr/bin/phpize
    ./configure --with-php-config=/opt/alt/php-fpm72/usr/bin/php-config
    

    for php 7.1 :

    cd /usr/local/src
    rm -rf apcu*
    curl https://pecl.php.net/get/APCu -o apcu.tgz
    tar -xf apcu.tgz
    cd apcu-*
    /opt/alt/php-fpm71/usr/bin/phpize
    ./configure --with-php-config=/opt/alt/php-fpm71/usr/bin/php-config
    

    for php 7.0 :

    cd /usr/local/src
    rm -rf apcu*
    curl https://pecl.php.net/get/APCu -o apcu.tgz
    tar -xf apcu.tgz
    cd apcu-*
    /opt/alt/php-fpm70/usr/bin/phpize
    ./configure --with-php-config=/opt/alt/php-fpm70/usr/bin/php-config
    


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


Log in to reply