W3 Total缓存无法真正检测到

时间:2014-06-12 作者:cii

我正在运行Apache+Cpanel,其中PHP作为Apache模块安装。我一直在尝试设置W3 Total Cache以查看php和apache扩展,但遇到了一些问题。它检测curl和ftlib,但无法检测从mod\\u deflate到mod\\u setenif的任何扩展。虽然这些即使“未检测到”也能工作,但它也不能检测apc或memcache,我想使用一些缓存插件的组合

php-r\'phpinfo();\'|grep-i“apc”

apc
APC Support => disabled
APC Debugging => Enabled
MMAP File Mask => /tmp/apc.XXXXXX
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 => 0 => 0
apc.include_once_override => Off => Off
apc.lazy_classes => Off => Off
apc.lazy_functions => Off => Off
apc.max_file_size => 10M => 10M
apc.mmap_file_mask => /tmp/apc.XXXXXX => /tmp/apc.XXXXXX
apc.num_files_hint => 4096 => 4096
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 => Off => Off
apc.stat => Off => Off
apc.stat_ctime => Off => Off
apc.ttl => 7200 => 7200
apc.use_request_time => On => On
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 7200 => 7200
apc.write_lock => On => On
php-r\'phpinfo();\'|grep-我是“memca”

memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 8192 => 8192
memcache.default_port => 11211 => 11211
memcache.default_timeout_ms => 1000 => 1000
memcache.hash_function => crc32 => crc32
memcache.hash_strategy => standard => standard
memcache.max_failover_attempts => 20 => 20
Registered save handlers => files user memcache 
PWD => /usr/local/src/memcached-1.4.6
_SERVER["PWD"] => /usr/local/src/memcached-1.4.6
_ENV["PWD"] => /usr/local/src/memcached-1.4.6
所以我问了一个可能与此相关的问题:https://wordpress.stackexchange.com/questions/149343/zend-opcache-no-files-cached

Zend Opcache在wordpress安装中没有看到我的任何PHP文件。W3 Total Cache似乎看不到我安装的任何php模块。我很困惑。有人有什么想法吗?如果还有什么可以帮忙的,请告诉我。

域是openproto。我们,如果有帮助的话。

1 个回复
最合适的回答,由SO网友:cii 整理而成

这原来是php之间的一个问题。我的wordpress安装和系统的php中的ini文件。ini文件。Wordpress将使用其目录中的一个,并忽略系统php中的所有内容。ini文件。删除wordpress php。ini文件修复了该问题。

结束
W3 Total缓存无法真正检测到 - 小码农CODE - 行之有效找到问题解决它

W3 Total缓存无法真正检测到

时间:2014-06-12 作者:cii

我正在运行Apache+Cpanel,其中PHP作为Apache模块安装。我一直在尝试设置W3 Total Cache以查看php和apache扩展,但遇到了一些问题。它检测curl和ftlib,但无法检测从mod\\u deflate到mod\\u setenif的任何扩展。虽然这些即使“未检测到”也能工作,但它也不能检测apc或memcache,我想使用一些缓存插件的组合

php-r\'phpinfo();\'|grep-i“apc”

apc
APC Support => disabled
APC Debugging => Enabled
MMAP File Mask => /tmp/apc.XXXXXX
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 => 0 => 0
apc.include_once_override => Off => Off
apc.lazy_classes => Off => Off
apc.lazy_functions => Off => Off
apc.max_file_size => 10M => 10M
apc.mmap_file_mask => /tmp/apc.XXXXXX => /tmp/apc.XXXXXX
apc.num_files_hint => 4096 => 4096
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 => Off => Off
apc.stat => Off => Off
apc.stat_ctime => Off => Off
apc.ttl => 7200 => 7200
apc.use_request_time => On => On
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 7200 => 7200
apc.write_lock => On => On
php-r\'phpinfo();\'|grep-我是“memca”

memcache
memcache support => enabled
memcache.allow_failover => 1 => 1
memcache.chunk_size => 8192 => 8192
memcache.default_port => 11211 => 11211
memcache.default_timeout_ms => 1000 => 1000
memcache.hash_function => crc32 => crc32
memcache.hash_strategy => standard => standard
memcache.max_failover_attempts => 20 => 20
Registered save handlers => files user memcache 
PWD => /usr/local/src/memcached-1.4.6
_SERVER["PWD"] => /usr/local/src/memcached-1.4.6
_ENV["PWD"] => /usr/local/src/memcached-1.4.6
所以我问了一个可能与此相关的问题:https://wordpress.stackexchange.com/questions/149343/zend-opcache-no-files-cached

Zend Opcache在wordpress安装中没有看到我的任何PHP文件。W3 Total Cache似乎看不到我安装的任何php模块。我很困惑。有人有什么想法吗?如果还有什么可以帮忙的,请告诉我。

域是openproto。我们,如果有帮助的话。

1 个回复
最合适的回答,由SO网友:cii 整理而成

这原来是php之间的一个问题。我的wordpress安装和系统的php中的ini文件。ini文件。Wordpress将使用其目录中的一个,并忽略系统php中的所有内容。ini文件。删除wordpress php。ini文件修复了该问题。

相关推荐

无法在模板函数.php中使用IS_HOME

我试图在标题中加载一个滑块,但只在主页上加载。如果有帮助的话,我正在使用Ultralight模板。我正在尝试(在template functions.php中)执行以下操作:<?php if ( is_page( \'home\' ) ) : ?> dynamic_sidebar( \'Homepage Widget\' ); <?php endif; ?> 但这行不通。现在,通过快速的google,我似乎需要将请