Error 500 when uploading my project in Laravel to shared server

0

Do a project with Laravel 5.6 and I'm trying to upload it to a shared server (000webhost.com), but I do not understand why I get 500 error, my version of PHP is 7.1, and the folder storage and all folders They have 777 permits. Can someone help me?

The structure of the carpatas of the server is like this

- public_html
  - * mis archivos de laravel (solo lo que estaba en la carpeta public) *
- tmp
- * mis archivos de laravel  (todos excepto la carpeta public) *

Help, please

This is my last record in my laravel log

[2018-07-18 13:06:24] production.ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified. at /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:42)
[stacktrace]
#0 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Support/helpers.php(1035): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(NULL)
#1 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(46): tap(NULL, Object(Closure))
#2 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(24): Illuminate\Encryption\EncryptionServiceProvider->key(Array)
#3 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(749): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#4 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build(Object(Closure))
#5 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container->resolve('encrypter', Array)
#6 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(721): Illuminate\Container\Container->make('encrypter', Array)
#7 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(885): Illuminate\Foundation\Application->make('encrypter')
#8 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(813): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#9 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(780): Illuminate\Container\Container->resolveDependencies(Array)
#10 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('App\\Http\\Middle...')
#11 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container->resolve('App\\Http\\Middle...', Array)
#12 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(721): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#13 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(215): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#14 /storage/ssd3/828/6440828/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\Foundation\Http\Kernel->terminateMiddleware(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#15 /storage/ssd3/828/6440828/public_html/index.php(50): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#16 {main}
"} 
  

I can not run SSH, that is, I can not execute commands, the hosting does not allow it

    
asked by Anthony Medina 18.07.2018 в 17:04
source

1 answer

0

I think it's coming from a Cache de laravel issue.

Since you can not run command from SSH I would try to see if the following works:

1. Create any route and have that route call the command

Route::get('/configurar-cache', function() {
    //probaria esto primero
    $exitCode = Artisan::call('config:cache');
    //si no funciona el anterior probaria este
    //$exitCode = Artisan::call('key:generate');
});

2. Call this route from the browser so that the command is executed.

http://tudominio/configurar-cache
    
answered by 18.07.2018 в 20:23