takaya030の備忘録

PHP、Laravel、Docker などの話がメインです

XAMPP 1.8.2 で php_apc を使う

XAMMP 1.7 の頃は php_apc モジュールが標準で入っていましたが、XAMPP 1.8.2 では含まれていません。
使えるモジュールが無いかググったところ、以下のものが使えました。

http://belsky.info/uploads/my/bugz/61984/php_apc-3.1.10-5.4-vc9-x86-xp.zip

インストール方法

  • ダウンロード、解凍して ts フォルダの方の php_apc.dll を \xampp\php\ext にコピー。
  • \xampp\php\php.ini に以下の内容を追加
extension=php_apc.dll

[APC]
apc.enabled = 1
apc.shm_size = 32M
apc.ttl = 0
apc.user_ttl = 0
apc.gc_ttl = 3600
apc.stat = 1
C:\>php -i | find "apc"
apc
apc.cache_by_default => On => On
apc.canonicalize => On => On
apc.coredump_unmap => Off => Off
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.file_md5 => Off => Off
apc.file_update_protection => 2 => 2
apc.filters => no value => no value
apc.gc_ttl => 3600 => 3600
apc.include_once_override => Off => Off
apc.lazy_classes => Off => Off
apc.lazy_functions => Off => Off
apc.max_file_size => 1M => 1M
apc.num_files_hint => 1000 => 1000
apc.preload_path => no value => no value
apc.report_autofilter => Off => Off
apc.rfc1867 => Off => Off
apc.rfc1867_freq => 0 => 0
apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
apc.rfc1867_prefix => upload_ => upload_
apc.rfc1867_ttl => 3600 => 3600
apc.serializer => default => default
apc.shm_segments => 1 => 1
apc.shm_size => 32M => 32M
apc.shm_strings_buffer => 4M => 4M
apc.slam_defense => On => On
apc.stat => On => On
apc.stat_ctime => Off => Off
apc.ttl => 0 => 0
apc.use_request_time => On => On
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 0 => 0
apc.write_lock => On => On