How install apcu as php7 extension on debian

前端 未结 6 1091
佛祖请我去吃肉
佛祖请我去吃肉 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:35

    First, I'm assuming you installed PHP7 using the DotDeb APT Repository. If not, this is how you should install it.

    Once PHP7 is installed and working properly, and assuming there are no other versions of PHP installed on the system, install apcu via:

    sudo apt-get install php7.0-dev
    pecl channel-update pecl.php.net
    pecl install apcu
    
    echo "extension=apcu.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
    

    Just press enter if prompted to specify any configuration.

提交回复
热议问题