Install Apcu in PHP 7.1

Asked

Viewed 6,674 times

0

I would like to install Apcu in PHP 7.1 through windows. I am installing an application and running directly on my machine by XAMPP, but when it arrives at the time of installation shows the message: The extension apcu-bc is not present.

Does anyone know how to install this extension in PHP 7.1 ?

Thank you

1 answer

0


Download the file php_apcu.dll here: http://windows.php.net/downloads/pecl/releases/apcu/

Download the file php_apcu_bc.dll here: https://pecl.php.net/package/apcu_bc

Then copy the files php_apcu.dll and php_apcu_bc.dll to the folder ext in the PHP installation folder.

Open the file php.ini and find the following lines and remove the comments, or if there is no add them:

extension=php_apcu.dll
extension=php_apcu_bc.dll

Then add the following configuration lines to the php.ini:

[APCu]
apc.enabled=1
apc.shm_size=32M
apc.ttl=7200
apc.enable_cli=1
apc.serializer=php

Restart the server and test again.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.