我使用本教程中加了我laravel 5项目共享的主机服务器, http://laravel.io/forum/12-29-2015-hosting-laravel-5-on-subdomain#reply-30462无法添加laravel 5项目到子文件夹
这是我的文件结构,
domain.com/
|--larco
|-- public_html/
| |--laravel
公共/ index.php文件在laravel文件夹,
require __DIR__.'/../../../larco/bootstrap/autoload.php';
$app = require_once __DIR__.'/../../../larco/bootstrap/app.php';
引导/ app.php文件,
realpath(__DIR__.'/../../larco/')
引导/ autoload.php,
require __DIR__.'/../../larco/vendor/autoload.php';
$compiledPath = __DIR__.'/../../larco/cache/compiled.php';
我laravel的版本是5.2 laravel。在我加载'http://domain.com/laravel/public/'链接后,我收到'Whoop,看起来像是出了问题。'问题。如果有人可以研究它,这将是很大的帮助。
这是存储/日志/ laravel.log添加的问题
production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and/or key length are invalid.' in /home/silverdr/larco/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:45
这是我的ENV文件...
APP_ENV=local
APP_DEBUG=true
APP_KEY=base64:tcPLEQN5yC984pB8EVHsdR/hLNFtq0hBasH+LMFBO+M=
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=mydb
DB_USERNAME=myuser
DB_PASSWORD=mypass
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
启用调试模式并查看实际错误是什么 – cwang
或者检查日志'storage/llogs/laravel.log'。 – James
@james,我查了错误日志并更新了问题。谢谢你一堆 – vimuth