Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install php-acpu-bc on Ubuntu 16.04

The php-apcu-bc package provides a backwards compatibility layer from apcu -> apc, and is reuqired for some older PHP code bases (e.g. Yii 1). The package is not (yet) available in the Ubuntu 16.04 repos. To install it, use php-pear:

sudo apt-get install php-dev php-pear
sudo pecl install apcu_bc-beta

Then edit /etc/php/7.0/apache2/php.ini and add the following at the end of the file:

[apcu]
extension=apcu.so
extension=apc.so

apc.enabled=1

The order is important here! apcu.so has to be included before apc.so.

@sadue
Copy link

sadue commented Apr 23, 2018

After this, be sure to reload your apache2 or any other you are using.

@GallopYD
Copy link

GallopYD commented Apr 8, 2019

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment