我試圖安裝Laravel當具有以下問題(http://laravel.com/)Laravel ::拒絕了對blade.php
任何幫助,將不勝感激。
Unhandled Exception
Message:
file_put_contents(/Users/alvincrespo/Sites/apollo/storage/views/26bdebca7505781c753aa21663170a1b) [function.file-put-contents]: failed to open stream: Permission denied
Location:
/Users/alvincrespo/Sites/apollo/laravel/blade.php on line 63
Stack Trace:
#0 /Users/alvincrespo/Sites/apollo/laravel/laravel.php(40): Laravel\Error::native(2, 'file_put_conten...', '/Users/alvincre...', 63)
#1 [internal function]: Laravel\{closure}(2, 'file_put_conten...', '/Users/alvincre...', 63, Array)
#2 /Users/alvincrespo/Sites/apollo/laravel/blade.php(63): file_put_contents('/Users/alvincre...', '...')
#3 [internal function]: Laravel\{closure}(Object(Laravel\View))
#4 /Users/alvincrespo/Sites/apollo/laravel/event.php(199): call_user_func_array(Object(Closure), Array)
#5 /Users/alvincrespo/Sites/apollo/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true)
#6 /Users/alvincrespo/Sites/apollo/laravel/view.php(325): Laravel\Event::until('laravel.view.en...', Array)
#7 /Users/alvincrespo/Sites/apollo/laravel/view.php(546): Laravel\View->render()
#8 /Users/alvincrespo/Sites/apollo/laravel/response.php(246): Laravel\View->__toString()
#9 /Users/alvincrespo/Sites/apollo/laravel/laravel.php(138): Laravel\Response->render()
#10 /Users/alvincrespo/Sites/apollo/public/index.php(34): require('/Users/alvincre...')
#11 {main}
不知道這是對我的補償的權限,但我基本上沒在chmod -R 777阿波羅/和它的工作。我知道這可能不是最好的解決方案。 – alvincrespo
你可以嘗試更改爲775,看看它是否仍然有效? – ctdeveloper
第二個以上,777是危險的。 –