首先描述一下我的问题我安装的是xampp1.7.1版本
php.ini配置如下
[APC]
zend_extension = ""
apc.mode = on
apc.mode = shmextension=php_apc.dll开启这种情况下运行程序,apache服务器会挂掉,报错信息为:
[Wed Sep 23 14:30:38 2009] [apc-error] Cannot redeclare class mysql
之后,我注释掉了apc的配置
[APC]
;zend_extension = ""
;apc.mode = on
;apc.mode = shmextension=php_apc.dll还是加载的这时运行程序,apache依然挂掉,报错信息:
[Wed Sep 23 15:11:02 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 23 15:11:02 2009] [notice] Digest: done
[Wed Sep 23 15:11:03 2009] [notice] Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9 configured -- resuming normal operations
[Wed Sep 23 15:11:03 2009] [notice] Server built: Dec 10 2008 00:10:06
[Wed Sep 23 15:11:03 2009] [notice] Parent: Created child process 4888
[Wed Sep 23 15:11:04 2009] [notice] Digest: generating secret for digest authentication ...
[Wed Sep 23 15:11:04 2009] [notice] Digest: done
[Wed Sep 23 15:11:05 2009] [notice] Child 4888: Child process is running
[Wed Sep 23 15:11:05 2009] [notice] Child 4888: Acquired the start mutex.
[Wed Sep 23 15:11:05 2009] [notice] Child 4888: Starting 250 worker threads.
[Wed Sep 23 15:11:05 2009] [notice] Child 4888: Starting thread to listen on port 443.
[Wed Sep 23 15:11:05 2009] [notice] Child 4888: Starting thread to listen on port 80.
[Wed Sep 23 15:11:14 2009] [apc-error] Cannot redeclare class mysql
[Wed Sep 23 15:11:19 2009] [crit] Parent: child process exited with status 2 -- Aborting.貌似是只要加载php_apc.dll就会出这样的错。这个问题该如何解决呢?
我从网上搜了N多办法,都没有解决,困扰我好久了,请各位大侠帮帮忙,不胜感激~~~~~~