How to install Alternative PHP Cache in Windows?
| From: | gecko | Date: | Wed, 07 Dec 2005 20:41:53 +0000 |
| Subject: | How to install Alternative PHP Cache in Windows? | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-3328@lists.php.net to get a copy of this message | ||
I have sent the below email to the 3 maintainers of APC but not yet
receive any response. Hope I can get quick suggestions here.
>>
I tried to install APC on my windows 2000 machine but
failed. My machine has Apache 2.0.55/php 5.1.1
installed, without Zend Optimizer.
Here are the procedures I did:
1. download php_apc.dll from
http://pecl4win.php.net/list.php/5_1
2. copy php_apc.dll to c:\php\ext
3. add extension=php_apc.dll in php.ini
4. add APC configuration in the end of php.ini
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 30
apc.optimization = 1
apc.num_files_hint = 1000
apc.ttl = 0
apc.gc_ttl = 3600
apc.cache_by_default = On
apc.filters =
apc.mmap_file_mask =
apc.slam_defense = 0
apc.file_update_protection = 2
apc.enable_cli = 0
5. create folder c:\tmp
When I tried to start Apache, an error window popped
out saying
"c:\php\ext\php_apc.dll is a invalid/illegal win32
application".
I also tried the php_apc.dll for php 4.4.x and failed
too.
What is the problem? Would you like to give some
suggestions? Thanks in advance.
<<