Joey
Joey

Reputation: 762

Install APC on PHP For Windows 7 x64

When I try to start Apache with

[PHP_APC]    
extension = php_apc.dll
[apc]
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1

in php.ini, it fails. I have the php_apc.dll in the ext directory.

Using Apache 2.2.17 and PHP 5.2.14 on Windows 7 x64.

Any suggestions?

Upvotes: 1

Views: 9767

Answers (4)

Miguel Angelo
Miguel Angelo

Reputation: 24182

After trying a lot of solutions, I found one that worked for me... so I am going to post this as an answer just to help people that may have the same problem finding the correct version to use.

I am using Windows 7 32bits, PHP 5.3.13, Apache 2.2.22, and the php_apc.dll found in the file apc-igbinary-fastlz-snap20110301-5.3-ts-vc9-x86.zip in this site: http://downloads.php.net/pierre/

I have registered the extension by just pasting the following code to the end of php.ini file:

[PHP_APC]
extension=php_apc.dll

Then I checked the result of phpinfo(), by using this php file:

phpinfo.php

<?php phpinfo(); ?>

Upvotes: 4

when on Windows use APC VC6 from here http://downloads.php.net/pierre

Upvotes: 0

Joey
Joey

Reputation: 762

Fixed. Was using the wrong version of APC.

Upvotes: 1

Kevin Peno
Kevin Peno

Reputation: 9196

Best bet, due to the limited windows PECL support atm, is to install Zend Server CE w/ PHP 5.3. You can have it install itself on IIS or Apache on the windows machine. Zend Server comes with APC built in (As well as many other PHP modules missing from the current 5.3 PECL stack).

As a side note, you could probably (I haven't tested this so...is just a possibility) install the server, "steal" the dlls, and install PHP however you like w/o zend server. BUT, that said, Zend server is actually pretty nice :)

Upvotes: 1

Related Questions