thinkphp3.2.2如果php启动了apc扩展则报错

使用thinkphp3.2.2直接部署到本地访问报错:




( ! ) Notice: require(): 1. h->opened_path=[null] h->filename=[./ThinkPHP/ThinkPHP.php] in /usr/local/webdata/news/index.php on line 27
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0

( ! ) Notice: require(): apc_cache_find [19168549] in /usr/local/webdata/news/index.php on line 27
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0

( ! ) Notice: require(): 2. h->opened_path=[/usr/local/webdata/news/ThinkPHP/ThinkPHP.php] h->filename=[./ThinkPHP/ThinkPHP.php] in /usr/local/webdata/news/index.php on line 27
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0

( ! ) Notice: require(): apc_cache_make_file_entry: entry->data.file.filename is [/usr/local/webdata/news/ThinkPHP/ThinkPHP.php] in /usr/local/webdata/news/index.php on line 27
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0

( ! ) Notice: require(): Inserting [/usr/local/webdata/news/ThinkPHP/ThinkPHP.php] in /usr/local/webdata/news/index.php on line 27
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0

( ! ) Notice: require(): 1. h->opened_path=[null] h->filename=[/usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php] in /usr/local/webdata/news/ThinkPHP/ThinkPHP.php on line 94
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27

( ! ) Notice: require(): apc_cache_find [19166422] in /usr/local/webdata/news/ThinkPHP/ThinkPHP.php on line 94
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27

( ! ) Notice: require(): 2. h->opened_path=[/usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php] h->filename=[/usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php] in /usr/local/webdata/news/ThinkPHP/ThinkPHP.php on line 94
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27

( ! ) Notice: require(): apc_cache_make_file_entry: entry->data.file.filename is [/usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php] in /usr/local/webdata/news/ThinkPHP/ThinkPHP.php on line 94
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27

( ! ) Notice: require(): Inserting [/usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php] in /usr/local/webdata/news/ThinkPHP/ThinkPHP.php on line 94
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27

( ! ) Fatal error: Call to undefined function Think\C() in /usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php on line 334
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27
3 0.0070 435584 Think\Think::start( ) ../ThinkPHP.php:96
4 0.0071 437872 Think\Think::autoload( ) ../ThinkPHP.php:0
5 0.0073 440624 Think\Think::appError( ) ../ThinkPHP.php:168
6 0.0073 441192 Think\Think::trace( ) ../Think.class.php:257

( ! ) Notice: include(): 1. h->opened_path=[null] h->filename=[/usr/local/webdata/news/ThinkPHP/Library/Think/Log.class.php] in /usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php on line 168
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27
3 0.0070 435584 Think\Think::start( ) ../ThinkPHP.php:96
4 0.0071 437872 Think\Think::autoload( ) ../ThinkPHP.php:0
5 0.0073 440624 Think\Think::appError( ) ../ThinkPHP.php:168
6 0.0073 441192 Think\Think::trace( ) ../Think.class.php:257
7 0.0079 437672 Think\Think::fatalError( ) ../Think.class.php:0
8 0.0080 438072 Think\Think::autoload( ) ../Think.class.php:0

( ! ) Notice: include(): apc_cache_find [19166501] in /usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php on line 168
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27
3 0.0070 435584 Think\Think::start( ) ../ThinkPHP.php:96
4 0.0071 437872 Think\Think::autoload( ) ../ThinkPHP.php:0
5 0.0073 440624 Think\Think::appError( ) ../ThinkPHP.php:168
6 0.0073 441192 Think\Think::trace( ) ../Think.class.php:257
7 0.0079 437672 Think\Think::fatalError( ) ../Think.class.php:0
8 0.0080 438072 Think\Think::autoload( ) ../Think.class.php:0

( ! ) Notice: include(): 2. h->opened_path=[/usr/local/webdata/news/ThinkPHP/Library/Think/Log.class.php] h->filename=[/usr/local/webdata/news/ThinkPHP/Library/Think/Log.class.php] in /usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php on line 168
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27
3 0.0070 435584 Think\Think::start( ) ../ThinkPHP.php:96
4 0.0071 437872 Think\Think::autoload( ) ../ThinkPHP.php:0
5 0.0073 440624 Think\Think::appError( ) ../ThinkPHP.php:168
6 0.0073 441192 Think\Think::trace( ) ../Think.class.php:257
7 0.0079 437672 Think\Think::fatalError( ) ../Think.class.php:0
8 0.0080 438072 Think\Think::autoload( ) ../Think.class.php:0

( ! ) Notice: include(): apc_cache_make_file_entry: entry->data.file.filename is [/usr/local/webdata/news/ThinkPHP/Library/Think/Log.class.php] in /usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php on line 168
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27
3 0.0070 435584 Think\Think::start( ) ../ThinkPHP.php:96
4 0.0071 437872 Think\Think::autoload( ) ../ThinkPHP.php:0
5 0.0073 440624 Think\Think::appError( ) ../ThinkPHP.php:168
6 0.0073 441192 Think\Think::trace( ) ../Think.class.php:257
7 0.0079 437672 Think\Think::fatalError( ) ../Think.class.php:0
8 0.0080 438072 Think\Think::autoload( ) ../Think.class.php:0

( ! ) Notice: include(): Inserting [/usr/local/webdata/news/ThinkPHP/Library/Think/Log.class.php] in /usr/local/webdata/news/ThinkPHP/Library/Think/Think.class.php on line168
Call Stack
# Time Memory Function Location
1 0.0015 237656 {main}( ) ../index.php:0
2 0.0044 288376 require( '/usr/local/webdata/news/ThinkPHP/ThinkPHP.php' ) ../index.php:27
3 0.0070 435584 Think\Think::start( ) ../ThinkPHP.php:96
4 0.0071 437872 Think\Think::autoload( ) ../ThinkPHP.php:0
5 0.0073 440624 Think\Think::appError( ) ../ThinkPHP.php:168
6 0.0073 441192 Think\Think::trace( ) ../Think.class.php:257
7 0.0079 437672 Think\Think::fatalError( ) ../Think.class.php:0
8 0.0080 438072 Think\Think::autoload( ) ../Think.class.php:0



很迷茫,记得之前将3.2.2的thinkphp部署到本地直接可以访问的,现在怎么不行了?回忆了一下之前是可以的,再看了一下出错提示中包含了大量的apc相关函数,这是不久前刚刚为php安装的apc扩展,难道跟acp有关?抱着怀疑态度,修改php.ini中去掉apc扩展,接着重启apache再看:


应用目录[./Application/]不可写,目录无法自动生成!
请手动生成项目目录~


就可以了,果然是apc扩展受影响的问题,那么apc为什么影响到了thinkphp3.2.2呢?这个还不知道

你可能感兴趣的:(thinkphp3.2.2如果php启动了apc扩展则报错)