为什么Phabricator仍然警告我:PHP Extension' APC'未安装

时间:2015-08-17 06:22:52

标签: phabricator

我已经通过CentOS 7上的PECL安装了APC 3.1.13。一切似乎都没问题。

php -i | grep apc输出:

Additional .ini files parsed => /etc/php.d/apcu.ini,
apc
apcu
MMAP File Mask => /tmp/apc.XXXXXX
apc.coredump_unmap => Off => Off
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.entries_hint => 4096 => 4096
apc.gc_ttl => 3600 => 3600
apc.mmap_file_mask => /tmp/apc.XXXXXX => /tmp/apc.XXXXXX
apc.preload_path => no value => no value
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 => php => php
apc.shm_segments => 1 => 1
apc.shm_size => 32M => 32M
apc.slam_defense => On => On
apc.smart => 0 => 0
apc.ttl => 0 => 0
apc.use_request_time => On => On
apc.writable => /tmp => /tmp

但是Phabricator的问题列表仍然警告我:PHP Extension 'APC' Not Installed。这是一个虚假的消息吗?我能做些什么呢?

1 个答案:

答案 0 :(得分:0)

确保您已在Apache配置中启用它

在我的盒子上: /etc/php5/apache2/conf.d/20-apcu.ini

运行php -i只是命令行界面,Apache加载它自己的扩展。