【发布时间】:2016-04-07 20:51:21
【问题描述】:
我试图让我的 laravel 项目“上线”,但我失败了。我将从一开始就安装了一个 VPS,LAMP stack、installed composer 和 VSFTPD。去 /var/www/html 并做了一个git clone of my repo。将 apache 更改为指向正确的目录 chmoded the storage folder 最后在浏览器中访问我的服务器并受到 2 Whoops, looks like something went wrong 的欢迎。之后我决定检查storage/logs/laravel.log 并看到以下错误:
exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /var/www/html/laravel/bootstrap/cache/compiled.php:7658
并决定做一个php artisan key:generate 并得到这个输出Application key [base64:(key was here but removed it here for obvious reasons)] set successfully.。并再次检查并受到相同的 2 Whoops, looks like something went wrong 的欢迎。
现在我不知道该怎么做,非常感谢任何帮助。
【问题讨论】:
-
你检查过here吗?
标签: php laravel encryption server