尝试安装Laravel(http://laravel.com/)时,我遇到以下问题
任何帮助将不胜感激.
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,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}
我会检查的权限:
原文链接:https://www.f2er.com/laravel/131204.html/Users/alvincrespo/Sites/apollo/storage/views/26bdebca7505781c753aa21663170a1b
允许您的应用程序写入此目录.
假设你在一个linux框上,你可以运行ls -l来查看权限是什么,如果设置为只读,可以使用chmod更改权限.