1. When laravel, which can run well locally, uploads to the server, this problem appears: “whoops, looks like something wet wrong.”
2. Step one/ app.php ‘debug ‘= &> env (‘app’) in file_ Debug ‘, false), change to’ debug ‘= &> env (‘app’)_ DEBUG’, true),
3. A lot of information is displayed now
We notice that no supported encryption found.The Cipher and/or key length are invalid_ Copy the key value and modify it/ app.php Inside
‘key’ =&> env(‘APP_ KEY’,’base64:R+8tyPpcbK6ELMheXa4D8hsxdVvXDilVUSFCFqaH8vY=’),
This app_ Key can also be accessed through PHP artisan key:generate Generation
Now report another mistake
The description here is database connection error, modify config/ database.php File database connection problem ‘MySQL’ = & gt[
‘driver’ =&> ‘mysql’,
‘host’ =&> env(‘DB_ HOST’, ‘localhost’),
‘port’ =&> env(‘DB_ PORT’, ‘3306’),
‘database’ =&> env(‘DB_ DATABASE’, ‘forge’),
‘username’ =&> env(‘DB_ USERNAME’, ‘forge’),
‘password’ =&> env(‘DB_ PASSWORD’, ”),
‘charset’ =&> ‘utf8’,
‘collation’ =&> ‘utf8_ unicode_ ci’,
‘prefix’ =&> ‘pty_ ‘,
‘strict’ =&> false,
‘engine’ =&> null,
],
Modify the corresponding database configuration
5. There is no problem when logging in to the background administrator, but an error is reported when logging in to the added administrator
This problem is a cache problem. Modify the config/ cache.php File, put ‘default’ = &> env (‘cache ‘)_ Driver ‘,’File’), change to
‘default’ =&> env(‘CACHE_ DRIVER’, ‘array’),
This is because this error occurred when adding roles using the zizaco/enter permission package.
Need to communicate with small partners can click here to add my QQ: Luke
Similar Posts:
- Laravel [1045] Solution Access denied for user’homestead’@’localhost’
- [Solved] Laravel Groupby error: laravel which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
- Laravel Syntax error or access violation: 1055 ‘***’ isn’t in GROUP BY
- After npm5, execute NPM cache clean and report an error
- java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘
- [Solved] git add Error: warning: LF will be replaced by CRLF in ……
- [Solved] Springboot Project Connect MYSQL Error: Establishing SSL connection without server’s identity verification is not recommended.
- Solve the problem of “Please provide a valid cache path” in Laravel/Lumen
- NodeJS Connect MYSQL Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
- mysql Remote connection problems: Lost connection to MySQL server at ‘reading initial communication packet’, syste…