部署我的laravel应用后出现500错误

时间:2019-03-16 18:02:13

标签: php laravel ubuntu

部署Web应用程序后出现500 erro,出现以下错误:

#1 /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/gabrie...', '<?php $__env->s...', 0)
#2 /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(122): Illuminate\Filesystem\Filesystem->put('/var/www/gabrie...', '<?php $__env->s...')
#3 /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile('/var/www/gabrie...')
#4 /var/www/gabrielgb.es/vendor/larave...
PHP message: PHP Fatal error:  Uncaught ErrorException: file_put_contents(/var/www/gabrielgb.es/storage/framework/views/19e7e3b2e87a6fea9c23327a9ff41e59e6f424c9.php): failed to open stream: Permission denied in /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:122
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'file_put_conten...', '/var/www/gabrie...', 122, Array)
#1 /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(122): file_put_contents('/var/www/gabrie...', '<?php $__env->s...', 0)
#2 /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(122): Illuminate\Filesystem\Filesystem->put('/var/www/gabrie...', '<?php $__env->s...')
#3 /var/www/gabrielgb.es/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->co

afaik,这是一个权限问题,但我不明白为什么要得到这个,因为我给了775个引导和sorage文件夹的权限,如您在这里看到的那样:

https://i.imgur.com/grxzO0B.png

https://i.imgur.com/QKVcDQV.png

我正在使用digitalocean VPS和Nginx作为Web服务器。 我在做什么错??

0 个答案:

没有答案