当前位置:Gxlcms > PHP教程 > 安装PHPAPC报错!

安装PHPAPC报错!

时间:2021-07-01 10:21:17 帮助过:3人阅读

( ! ) Notice: Unknown: 1. h->opened_path=[null] h->filename=[D:/wamp/www/index.php] in Unknown on line 0 

( ! ) Notice: Unknown: apc_cache_find [74316004] in Unknown on line 0 

( ! ) Notice: Unknown: 2. h->opened_path=[D:\wamp\www\index.php] h->filename=[D:/wamp/www/index.php] in Unknown on line 0 

( ! ) Notice: Unknown: apc_cache_make_file_entry: entry->data.file.filename is [D:\wamp\www\index.php] in Unknown on line 0 

( ! ) Notice: Unknown: Inserting [D:\wamp\www\index.php] in Unknown on line 0 

版本:PHP 5.3

下面是PHP.ini 中APC配置,同样配置在另一部电脑中可以使用:

[APC]
extension=php_apc.dll
apc.rfc1867 = on
apc.max_file_size = 100M
upload_max_filesize = 100M
post_max_size = 100M

回复内容:

( ! ) Notice: Unknown: 1. h->opened_path=[null] h->filename=[D:/wamp/www/index.php] in Unknown on line 0 

( ! ) Notice: Unknown: apc_cache_find [74316004] in Unknown on line 0 

( ! ) Notice: Unknown: 2. h->opened_path=[D:\wamp\www\index.php] h->filename=[D:/wamp/www/index.php] in Unknown on line 0 

( ! ) Notice: Unknown: apc_cache_make_file_entry: entry->data.file.filename is [D:\wamp\www\index.php] in Unknown on line 0 

( ! ) Notice: Unknown: Inserting [D:\wamp\www\index.php] in Unknown on line 0 

版本:PHP 5.3

下面是PHP.ini 中APC配置,同样配置在另一部电脑中可以使用:

[APC]
extension=php_apc.dll
apc.rfc1867 = on
apc.max_file_size = 100M
upload_max_filesize = 100M
post_max_size = 100M

强烈建议使用Opcache,而不是APC!引用Laruence大神的原话:

PHP5.5开始,Opcache进入PHP源代码树,APC我们也就不在做更新了

人气教程排行