【发布时间】:2012-08-06 18:28:14
【问题描述】:
我已经在我们的 Windows 开发服务器上安装了 APC。在我启用 APC 并重新启动 apache 后,我们的页面无法加载。他们超时,我只是在浏览器上重置连接。
服务器上的其他脚本,例如 phpmyadmin 也不会加载。
这是我们的系统配置:
Windows 2003 Server
Apache 2.2.22
PHP Version 5.3.15
APC Version 3.1.11
查看apc.php 我看到命中率为 80%,未命中率为 20%。
APC 运行时设置
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 0
apc.enabled 1
apc.file_md 50
apc.file_update_protection 2
apc.filters ''
apc.gc_ttl 3600
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 1M
apc.num_files_hint 1000
apc.preload_path ''
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 32M
apc.slam_defense 1
apc.stat 1
apc.stat_ctime 0
apc.ttl 0
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 0
apc.write_lock 1
我看到在指定临时文件夹上创建的文件名称为.apc.a00532,但它们有file size 0
我还检查了 php 错误日志,但没有看到任何内容。
非常感谢任何帮助,在此先感谢。
编辑 我正在使用 VC9 编译的 PHP,我的 apache 与从 apache Lounge 编译的 VC9 匹配。我也尝试过使用 APC 3.1.9,但它也不显示页面。我运行的任何 php 脚本都会超时,除了 apc.php 本身,它显示我正在缓存的东西。
【问题讨论】:
-
您可能会在 serverfault 上看到更多操作。
-
我不想创建跨站点重复,如果在这里没有得到一些想法可能会移动到那里。感谢您的建议。
-
你不是在使用 Zend Server 吗?
-
@wes 没有来自 apache Lounge 的 Zend 服务器 apache,来自 php.net 的 php 都是 VC9 编译的