How can I install APCu in Windows?
I found this. But I need a solution for Windows.
I use PHP 5.5.6 (I have the XAMPP package).
How can I install APCu in Windows?
I found this. But I need a solution for Windows.
I use PHP 5.5.6 (I have the XAMPP package).
Download the .dll file from here
Edit the php.ini file and add the following line in the extensions section:
For those who want APCu with backward APC compatibility (1:1 replacement without changing codebase, for example
apc_cache_info
>apcu_cache_info
)Download
php_apcu.dll
from release page (choose proper PHP version, architecture and thread safety mode)Download
php_apcu_bc.dll
from PECLSave both files in
ext
dir under your PHP installation folderLoad extensions in
php.ini
:Configure APCu in
php.ini
INFO: APC extension with APCu-BC 1.0.3 must be named exactly
php_apcu.dll
in order to work. When I named itphp_apcu_bc-1.0.3-7.1-ts-vc14-x86.dll
XAMPP did not start properly (error about missingphp_apc.dll
)Additional Note: the downloaded zip file from the source above for vc15 contained a file named php_apc.dll (in file: 'php_apcu_bc-1.0.4-7.2-ts-vc15-x86.zip' date: 13/06/2018) - just renaming it to php_apcu_bc.dll worked.
This short and straight to the point tutorial should help you
Install APCu on Windows
Assumptions
Instructions
Pre: All directory locations might be different for you depending on your wamp installation folder and your PHP/apache versions.
php_apcu.dll
inC:\wamp\bin\php\php5.5.6\ext
.Go to
C:\wamp\bin\apache\apache2.4.9\bin
openphp.ini
and add the following lines (I just added them at the end of the file):This are recommended configurations located in INSTALL file from the php_apcu archive, excepting the location of the DLL file.
Restart wamp
C:\wamp\bin\php\php5.5.6\bin\php.ini
the config lines you added at step 5 in apache's php.ini.The end!
Please refer to the official documentation:
https://secure.php.net/manual/en/opcache.installation.php
In my case, I'm using PHP 5.6 on XAMPP and everything I need to do is to update my
php.ini
file with (recommended settings):