【问题标题】:moving laravel public folder gives ' looks like something went wrong ' [duplicate]移动 laravel 公用文件夹给出'看起来出了点问题' [重复]
【发布时间】:2017-05-04 20:03:58
【问题描述】:

文件结构为:

/bin
....
....
/public_ftp
/public_html/app
/public_html/bootstrap
...
/public_html/public
....
....
/www

但是当我把它改成:

/bin
/laravel/app
/laravel/bootstrap
....
....
/public_ftp
...
/public_html/css
/public_html/js
/public_html/index.php
....
....
/www

我也将 index.php 更改为:

$app = require_once __DIR__.'/../laravel/bootstrap/app.php';
require __DIR__.'/../laravel/bootstrap/autoload.php';

但是当我打开 index.php 时它显示

糟糕,好像出了点问题。

laravel 日志

production.ERROR: exception 'RuntimeException' with message 'The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.' in /home/fabitzza/laravel/vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php:43

public_htmlpublic_html

之前没有这个错误

【问题讨论】:

  • 检查你当前的 PHP 版本和当前 Laravel 所需的 PHP 版本。
  • php版本为5.6
  • 你的 laravel 版本是什么?
  • "laravel/framework": "5.3.*"
  • laravel 5.3需要5.6.4或以上的php版本

标签: php laravel laravel-5 server webserver


【解决方案1】:

运行此命令

php artisan key:generate

并使用清除配置缓存

php artisan config:cache

希望这会奏效!

【讨论】:

  • [Symfony\Component\Console\Exception\CommandNotFoundException] “key:”命名空间中没有定义命令。你是这个意思吗?键
  • 尝试从项目目录运行这些命令
  • 我认为这是 php artisan key:generate 。单:不是双::
  • 是的,你是对的,那是我的错,谢谢指出!
  • 它成功了,现在我在我的页面上获得了与 github.com/laravel/framework/issues/9080 相同的日志详细信息,但在它只是 糟糕之前,似乎出了点问题。
猜你喜欢
  • 2013-02-11
  • 2020-04-01
  • 2013-04-01
  • 2017-09-03
  • 1970-01-01
  • 2014-07-08
  • 2017-12-23
  • 2013-06-03
  • 2017-10-12
相关资源
最近更新 更多