installing PHP APC extension on windows
I want to install the APC extension for PHP. I've got to this page and I'm a little stuck. I've downloaded a file f开发者_如何学Gorom here, which gives me a APC-3.1.9.tgz file. I've extracted the file. However from the page I've mentioned above, I'm given the impression I need to load a .dll file.
I'm lost and confused, what should I be doing?
- OS: Windows Vista
- Server: Apache
- PHP: 5.3.5
You can download the compiled dll from downloads.php.net.
From http://www.php.net/manual/en/apc.installation.php
A DLL for this PECL extension is currently unavailable. See also the building on Windows section.
In other words: no easy way on Windows
I downloaded the file from above mentioned http://downloads.php.net/pierre/. The zip contains two folders: "nts" and "ts" (probably "tread safe" and "non thread safe") with php_apc.dll file.
You must put this file in your PHP extensions folder (for exemple c:\wamp\bin\php5.4.1\ext) and edit PHP.ini file to add or uncomment the line:
extension=php_apc.dll
After restarting web service (Apache, IIS, etc.) you can check the PHP configuration with
<?php phpinfo(); ?>
to see if "apc" block appeared
Here's hoping people looking for APC for Windows are still checking this post.
I just found APC 3.1.9 for Windows here:
http://dev.freshsite.pl/php-accelerators/apc.html
Confirmed working on Apache 2, PHP 5.3.8, Windows 7 (32-bit).
try this Alternative PHP Cache (APC) 3.1.9 extension
https://code.google.com/p/xampp-php-extensions/downloads/detail?name=php_apc.dll&can=2&q=
精彩评论