php版本是5.4.3,从这里下了个
http://downloads.php.net/pierre/
php_apc-3.1.10-5.4-vc9-x86.zip 
解压到ext目录下extension="D:/php/ext/php_apc.dll"
[apc]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64
apc.optimization = 0
apc.num_files_hint = 1000
apc.ttl = 0
apc.gc_ttl = 3600
apc.cache_by_default = On
apc.slam_defense = 0
apc.file_update_protection = 2
apc.enable_cli = 0
apc.stat=0apache的logPHP Warning:  PHP Startup: Unable to load dynamic library 'D:/php/ext/php_apc.dll' - The specified procedure could not be found.\r\n in Unknown on line 0

解决方案 »

  1.   

    ext 目录下不存在 php_apc.dll 
      

  2.   

    你的php是新装的吗?如果是的话你的extension_dir这个你是怎么设置的?extension这个参数可以这么用吗?
      

  3.   

    新装的
    ; Directory in which the loadable extensions (modules) reside.
    ; http://php.net/extension-dir
     extension_dir = "D:\php\ext"
    ; On windows:
    ; extension_dir = "ext"下面这些都可以用。
    extension=php_gd2.dll
    extension=php_imap.dll
    extension=php_mbstring.dll
    extension=php_mysql.dll
    extension=php_mysqli.dll
      

  4.   

    换其他老版本的apc dll有出这种通知的
    PHP Warning:  PHP Startup: apc: Unable to initialize module\nModule compiled with module API=20090626\nPHP    compiled with module API=20100525\nThese options need to match\n in Unknown on line 0
    也有这种的
    PHP Warning:  PHP Startup: apc: Unable to initialize module\nModule compiled with module API=20060613\nPHP    compiled with module API=20100525\nThese options need to match\n in Unknown on line 0
    看来不是没读到,究竟什么问题。
      

  5.   

    我试了装memcached,也不行,也是类似的错。
      

  6.   

    extension=php_apc.dll    这样就行了,不要前面的目录 
      

  7.   

    没用,还是老样子,重新下了个php装,还是一样。
      

  8.   

    原因找到了,我的是xp,所谓专门下了个xp/2003的,解决了。http://belsky.info/uploads/my/bugz/61984/php_apc-3.1.10-5.4-vc9-x86-xp.zip
      

  9.   

    没在win下跑,还真不知道apc有这么蛋的事情..
      

  10.   

    最终蛋疼的把系统换成了win7解决了这个问题。