Skip to content

Instantly share code, notes, and snippets.

@philbot9
Created August 12, 2016 15:57
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save philbot9/1e895303a37a1c18717e90eb7067df73 to your computer and use it in GitHub Desktop.
Save philbot9/1e895303a37a1c18717e90eb7067df73 to your computer and use it in GitHub Desktop.
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.

@UgooAgbams
Copy link

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