How install apcu as php7 extension on debian
Apr 112016First, 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:
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.