Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How install apcu as php7 extension on debian

Tags:

php-7

debian

apc

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 step(git clone). I need apcu extension for my app to perform faster. Please guide to install apcu extension for php 7 on debian.

like image 722
ns dns Avatar asked Sep 06 '25 11:09

ns dns


1 Answers

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.

like image 119
Will Avatar answered Sep 08 '25 21:09

Will