我使用本教程中加了我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