TP架構中/ThinkPHP/Library/Think/Storage/Driver/File.class.php 錯誤

來源:互聯網
上載者:User

標籤:2.3   details   blog   under   exe   black   問題:   func   命令   

  

/ThinkPHP/Library/Think/Storage/Driver/File.class.php  LINE: 48錯誤

這是一個將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]: Think\Storage\Driver\File->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): Think\Storage::__callstatic(‘put‘, Array) 

/#4 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(114): Think\Storage::put(‘./Runtime/Cache…‘, ‘ #5 /home/wwwroot/testisale/ThinkPHP/Library/Think/Template.class.php(76): Think\Template->loadTemplate(‘./Application/I…‘, ") 

/#6 /home/wwwroot/testisale/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(32): Think\Template->fetch(‘./Application/I…‘, Array, ") 

/#7 /home/wwwroot/testisale/ThinkPHP/Library/Think/Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array) 

/#8 /home/wwwroot/testisale/ThinkPHP/Library/Think/Hook.class.php(89): Think\Hook::exec(‘Behavior\ParseT…‘, ‘view_parse‘, Array) 

/#9 /home/wwwroot/testisale/ThinkPHP/Library/Think/View.class.php(126): Think\Hook::listen(‘view_parse‘, Array) 

/#10 /home/wwwroot/testisale/ThinkPHP/Library/Think/View.class.php(72): Think\View->fetch(", ", ") 

/#11 /home/wwwroot/testisale/ThinkPHP/Library/Think/Controller.class.php(56): Think\View->display(", ", ", ", ") 

/#12

ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } – [ WE CAN DO IT JUST THINK ]

 

 

 

 

 

 

 

 

出現這個問題的原因是項目中的Runtime許可權不夠,需要給Runtime和其目錄下的所有檔案授權,讀者只需要執行下列命令即可:

chmod -R 777 Runtime

 

http://blog.csdn.net/callouweicheng/article/details/50898351

TP架構中/ThinkPHP/Library/Think/Storage/Driver/File.class.php 錯誤

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.