Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2016 15:57
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
Star You must be signed in to star a gist
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:



The order is important here! has to be included before

Copy link

hesleymagno commented Jan 17, 2018

Thank you, I've been waiting for this for a long time.

Copy link


Copy link

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

Copy link

GallopYD commented Apr 8, 2019


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