• 将windows下运行正常的ThinkPHP框架移到Linux下会出现的一个问题:


    这是一个将windows下运行正常的ThinkPHP框架移到Linux下会出现的一个问题: 
    :( 
    STORAGE_WRITE_ERROR:./Runtime/Cache/Install/c6bbce5b1f1dcf027c8ceb5cf5141b65.PHP 
    错误位置 
    FILE: /home/wwwroot/testisale/ThinkPHP/Library/Think/Storage/Driver/File.class.php  LINE: 48 
    TRACE 
    /#0 /home/wwwroot/testisale/ThinkPHP/Library/Think/Storage/Driver/File.class.php(48): E(‘STORAGE_WRITE…’) 
    /#1 [internal function]: ThinkStorageDriverFile->put(‘./Runtime/Cache…’, ’ #2 /home/wwwroot/testisale/ThinkPHP/Library/Think/Storage.class.php(37): call_user_func_array(Array, Array) 
    /#3 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(114): ThinkStorage::__callstatic(‘put’, Array) 
    /#4 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(114): ThinkStorage::put(‘./Runtime/Cache…’, ’ #5 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(76): ThinkTemplate->loadTemplate(‘./Application/I…’, ”) 
    /#6 /home/wwwroot/testisale/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(32): ThinkTemplate->fetch(‘./Application/I…’, Array, ”) 
    /#7 /home/wwwroot/testisale/ThinkPHP/Library/Think/Hook.class.php(119): BehaviorParseTemplateBehavior->run(Array) 
    /#8 /home/wwwroot/testisale/ThinkPHP/Library/Think/Hook.class.php(89): ThinkHook::exec(‘BehaviorParseT…’, ‘view_parse’, Array) 
    /#9 /home/wwwroot/testisale/ThinkPHP/Library/Think/View.class.php(126): ThinkHook::listen(‘view_parse’, Array) 
    /#10 /home/wwwroot/testisale/ThinkPHP/Library/Think/View.class.php(72): ThinkView->fetch(”, ”, ”) 
    /#11 /home/wwwroot/testisale/ThinkPHP/Library/Think/Controller.class.php(56): ThinkView->display(”, ”, ”, ”, ”) 
    /#12 /home/wwwroot/testisale/Application/Install/Controller/IndexController.class.php(27): ThinkController->display() 
    /#13 [internal function]: InstallControllerIndexController->index() 
    /#14 /home/wwwroot/testisale/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(InstallControllerIndexController)) 
    /#15 /home/wwwroot/testisale/ThinkPHP/Library/Think/App.class.php(110): ThinkApp::invokeAction(Object(InstallControllerIndexController), ‘index’) 
    /#16 /home/wwwroot/testisale/ThinkPHP/Library/Think/App.class.php(204): ThinkApp::exec() 
    /#17 /home/wwwroot/testisale/ThinkPHP/Library/Think/Think.class.php(120): ThinkApp::run() 
    /#18 /home/wwwroot/testisale/ThinkPHP/ThinkPHP.php(97): ThinkThink::start() 
    /#19 /home/wwwroot/testisale/install.php(35): require(‘/home/wwwroot/t…’) 
    /#20 {main} 
    ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } – [ WE CAN DO IT JUST THINK ]

    出现这个问题的原因是项目中的Runtime权限不够,需要给Runtime和其目录下的所有文件授权,读者只需要执行下列命令即可:

    chmod -R 777 Runtime

  • 相关阅读:
    Bootstrap之Carousel问题
    IMG图片和文字同行显示
    divcss5布局
    使用PHP QR Code生成二维码
    mysql grant用户权限设置
    Linux下的压缩解压缩命令详解
    linux网站目录及Apache权限的设置
    lamp环境编译(apache2.4.7 php5.4.25 mysql 5.5.23)
    mysql开启远程访问
    lamp环境编译(实际通过)
  • 原文地址:https://www.cnblogs.com/zhang-bin/p/7453414.html
Copyright © 2020-2023  润新知