我在启用APCcaching时遇到问题。 这是我的configuration。
PHP 5.3.6 Apache 2.2.19 Windows 7
我已经从下面的URl下载了php_apc.dll: http : //downloads.php.net/pierre/php_apc-20110109-5.3-nts-vc9-x86.zip
我已经把这个DLL放在php的扩展文件夹中,并将下面的代码放在php.ini中
extension=php_apc.dll
接下来的任何事情都需要启用APCcaching? 因为当我把上面的行放在PHP.ini中,那么Apache不会重新启动。
任何帮助非常感谢。
编辑:
[Tue Sep 06 14:22:28 2011] [notice] Parent: Received restart signal -- Restarting the server. [Tue Sep 06 14:22:33 2011] [warn] NameVirtualHost *:80 has no VirtualHosts rocess is ending. [Tue Sep 06 14:22:29 2011] [notice] Child 4212: Released the start mutex [Tue Sep 06 14:23:00 2011] [notice] Child 4212: Waiting 270 more seconds for 1 worker threads to finish. [Tue Sep 06 14:23:04 2011] [notice] Child 4212: All worker threads have exited. [Tue Sep 06 14:23:04 2011] [notice] Child 4212: Child process is exiting
当你重新启动时,Apache的主要error.log会发生什么? 这应该给你一个线索是什么错…
另外,因为你在Apache下运行PHP,我猜你可能正在运行线程安全版本(非线程安全版本主要用于在IIS下运行PHP作为ISAPI模块),并且您下载的文件似乎是非线程安全(它有文件名中的nts )。 你应该使用Apache的线程安全版本 – 尝试使用这个文件 。
另外,请确保您使用的是从php.net发布的PHP的PHP版本 – DLL将针对这些版本进行构build,并不保证与其他人的发行版一起工作。 如果由于某种原因,这是你正在使用的VC6版本,肯定不能保证。
你的Apache从哪里build立?