php安装错误

时间:2011-07-12 14:31:03

标签: php apc

我已经使用php 5.2.11的插件安装了'WampServer2.1e-x32'堆栈。我下载了apc3.0.19.dll并将其放在php.ini目录和必需信息下。使其发挥作用。

重新启动wamp服务器并导航到phpmyadmin,这里有一些我从未见过的错误:(。

Notice: Unknown: 1. h->opened_path=[null] h->filename=[C:/wamp/apps/phpmyadmin3.3.9/index.php] in Unknown on line 0

Notice: Unknown: 2. h->opened_path=[C:\wamp\apps\phpmyadmin3.3.9\index.php] h->filename=[C:/wamp/apps/phpmyadmin3.3.9/index.php] in Unknown on line 0

Notice: Unknown: apc_cache_make_file_entry: entry->data.file.filename is [C:\wamp\apps\phpmyadmin3.3.9\index.php] in Unknown on line 0

Notice: Unknown: Inserting [C:\wamp\apps\phpmyadmin3.3.9\index.php] in Unknown on line 0

Notice: require_once() [function.require-once]: 1. h->opened_path=[C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php] h->filename=[./libraries/common.inc.php] in C:\wamp\apps\phpmyadmin3.3.9\index.php on line 35

Notice: require_once() [function.require-once]: 2. h->opened_path=[C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php] h->filename=[./libraries/common.inc.php] in C:\wamp\apps\phpmyadmin3.3.9\index.php on line 35

Notice: require_once() [function.require-once]: apc_cache_make_file_entry: entry->data.file.filename is [C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php] in C:\wamp\apps\phpmyadmin3.3.9\index.php on line 35

Notice: require_once() [function.require-once]: Inserting [C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php] in C:\wamp\apps\phpmyadmin3.3.9\index.php on line 35

Notice: require_once() [function.require-once]: 1. h->opened_path=[C:\wamp\apps\phpmyadmin3.3.9\libraries\Error_Handler.class.php] h->filename=[./libraries/Error_Handler.class.php] in C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php on line 53

Notice: require_once() [function.require-once]: Stat failed ./libraries/Error_Handler.class.php - bailing (C:/wamp/apps/phpmyadmin3.3.9/index.php) (1310476968) in C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php on line 53

Notice: require_once() [function.require-once]: 1. h->opened_path=[C:\wamp\apps\phpmyadmin3.3.9\libraries\Error.class.php] h->filename=[./libraries/Error.class.php] in C:\wamp\apps\phpmyadmin3.3.9\libraries\Error_Handler.class.php on line 13

Notice: require_once() [function.require-once]: Stat failed ./libraries/Error.class.php - bailing (C:/wamp/apps/phpmyadmin3.3.9/index.php) (1310476968) in C:\wamp\apps\phpmyadmin3.3.9\libraries\Error_Handler.class.php on line 13

Notice: require_once() [function.require-once]: 1. h->opened_path=[C:\wamp\apps\phpmyadmin3.3.9\libraries\Message.class.php] h->filename=[./libraries/Message.class.php] in C:\wamp\apps\phpmyadmin3.3.9\libraries\Error.class.php on line 13

Notice: require_once() [function.require-once]: Stat failed ./libraries/Message.class.php - bailing (C:/wamp/apps/phpmyadmin3.3.9/index.php) (1310476968) in C:\wamp\apps\phpmyadmin3.3.9\libraries\Error.class.php on line 13

我已卸载它并重新安装但仍然收到此错误!!我想运行php 5.2.11和APC,我不知道为什么phpmyadmin受到影响!!!

我尝试了不同版本的APC [php_apc-3.1.5-5.2-vc6-x86],最后得到了正确的一个似乎在PHP [php_apc_3_0_19.dll]工作,它只是直接影响了我的phpmyadmin ... < / p>

我将再次卸载,删除所有与wamp相关的文件并开始新鲜......但我对APC的了解非常有限......我可能认为完全是不同的方向......

任何有助于解决以下问题的帮助都非常感谢...

5 个答案:

答案 0 :(得分:3)

对于user269867来说有点晚了,但我找到了一个解决方案(APC 3.1.9 / 3.1.13):

你也可以这样说:

https://bugs.php.net/bug.php?id=59445

据说:

“如果编译不是一个选项,请回滚到稳定版:pecl install -f APC-3.1.6”

确实是回归,但对我来说效果很好:)。

(我也在APC (Alternate PHP Cache) Throwing Lots of PHP Notices

回复了

答案 1 :(得分:2)

看起来windows.php.net中的最新版本也被破坏了。我测试过了:

  1. php_apc-3.1.12-5.4-TS-VC9 86
  2. php_apc-3.1.13-5.4-TS-VC9 86
  3. 来自http://windows.php.net/downloads/pecl/releases/apc/,两者都有这个问题。

    如果你像我一样被困在这,请转到: http://downloads.php.net/pierre/

    下载php_apc-3.1.10-5.4-vc9-x86.zip。

答案 2 :(得分:0)

如果PHPMyAdmin是唯一给你带来问题的东西,现在是时候切换了。我发现PHPMyAdmin速度慢,体积大,框架太多。我建议您切换到Adminer,安装快捷方便。

答案 3 :(得分:0)

看起来所有消息都围绕着phpMyAdmin的libraries目录,该目录是否存在?如果是,那么权限是什么?

我在这里看到这个错误似乎与apc:

直接相关
Notice: require_once() [function.require-once]: apc_cache_make_file_entry: entry->data.file.filename is [C:\wamp\apps\phpmyadmin3.3.9\libraries\common.inc.php] in C:\wamp\apps\phpmyadmin3.3.9\index.php on line 35

另外,这些不是错误,但是注意到myadmin尽管有这些吗?

最后,我发现这篇博文,这有帮助吗?看起来你可以为phpmyadmin禁用APC。

http://mattiasgeniar.be/2011/01/20/running-phpmyadmin-with-apc-cache-enabled-fatal-php-errors/

答案 4 :(得分:0)

我不认为这些错误实际上是PHPMyAdmin的问题;它们是APC配置设置的一部分。显然启用了调试。我认为这可以通过https://stackoverflow.com/a/9032478/263877来解决。