Gary Ryan
Gary Ryan

Reputation: 754

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 from 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?

Upvotes: 5

Views: 20873

Answers (5)

Celmaun
Celmaun

Reputation: 24762

You can download the compiled dll from downloads.php.net.

Upvotes: 4

Subodh Ghulaxe
Subodh Ghulaxe

Reputation: 18671

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=

Upvotes: 0

Srdjan
Srdjan

Reputation: 164

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

Upvotes: 3

theEdgeOfChaos
theEdgeOfChaos

Reputation: 99

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).

Upvotes: 1

Mchl
Mchl

Reputation: 62395

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

Upvotes: 3

Related Questions