移动 laravel public 文件夹给出“看起来出了点问题”

moving laravel public folder gives ' looks like something went wrong '

当文件结构为:

时它工作正常
/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_html

运行 这个命令

php artisan key:generate

并使用

清除配置缓存
php artisan config:cache

希望这会奏效!