How install apcu as php7 extension on debian

前端 未结 6 1104
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-12 21:18

I have seen this tutorial for ubuntu. http://thereluctantdeveloper.com/2015/12/quick-and-dirty-php-70-set-up-on-ubuntu-1404-with-apcu

It\'s not clear for me after st

6条回答
  •  忘掉有多难
    2021-02-12 21:48

    Check /etc/php/(version like 7.2)/cli/conf.d directory and find 20-apcu.ini. If you dont see it there, You need to install it. To install follow bellow command:

    sudo apt-get install php7.2-apcu
    

    Now add bellow line in php.ini file if it is not there.

    extension=apcu.so
    

    Notice: for php7.2-apcu use your own php version. for example php7.0-apcu

    After install restart your php7.X-fpm service if you are using nginx

    sudo service php7.2-fpm restart
    

    Now reload nginx

    sudo service nginx reload
    

    or reload apache, if you are using it:

    sudo service apache2 reload
    

提交回复
热议问题