views:

31

answers:

3

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?

A: 

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

Kevin Peno
Meh, my answer was focused on PHP 5.3 (which has pecl issues), not 5.2. My appologies.
Kevin Peno
+1  A: 

Fixed. Was using the wrong version of APC.

Joey