PHP APC 5.3.8 挂起页面请求
我很难找到最新版本的 php_apc.dll,所以我自己编译了它。我使用 NTS v5.3.8 编译它没有任何问题。我设置了两个单独的文件来测试,一个是一个简单的 phpinfo()
调用,另一个是 apc 源附带的标准 apc.php
文件文件。
奇怪的是,当我加载 phpinfo()
文件时,它工作得很好,但是当我尝试访问 apc.php
时,网络服务器会挂起,直到超时。我重新启动了网络服务器,访问了 apc.php,它工作得很好,但是尝试返回到 phpinfo() 会导致服务器挂起直到超时。可能值得注意的是,即使重新启动后,phpmyadmin 和我自己的 codeigniter 应用程序也无法工作。
我尝试过以前版本的 apc,但没有成功; 5.3.5 与 apc.stat = 0 有效,但我需要该功能,因为这是一个开发服务器,但我正在测试一些生产类型缓存。
值得注意的事情: 服务器由运行 PHP 5.3.8 的 Nginx 1.0.8 提供支持(使用 fast-cgi)。除了 apc 加载时之外,一切都按预期工作。
I had difficulty finding the newest version of php_apc.dll so I went ahead and compiled it myself. I had no issue getting it compiled using NTS v5.3.8. I had two separate files set up to test, one with a simple phpinfo()
call on it and the other being the standard apc.php
file that comes with the apc source files.
Strangely, when I would load the phpinfo()
file it would work totally fine, but when I tried to access apc.php
the webserver would hang until a timeout. I restarted the webserver, accessed apc.php
and it worked just fine, but trying to go back to phpinfo()
would cause the server to hang until timeout. It is probably worth noting that phpmyadmin and my own codeigniter application do not work period, even after a restart.
I have tried previous versions of apc with no luck; 5.3.5 with apc.stat = 0 works but I am in need of that feature as this is a development server, but I'm testing out some production type caching.
Noteworthy stuff:
Server is powered by Nginx 1.0.8 running PHP 5.3.8 (using fast-cgi). Everything works as intended with the exception of when apc is loaded.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从 http://downloads.php.net/pierre/ 下载 php_apc.dll
您可以找到它的不同版本。
You can download the php_apc.dll from http://downloads.php.net/pierre/
You can find there different versions of it.