aaadddminnn
@aaadddminnn
php it ubuntu debian

Почему не работает laravel?

Привет. Вот скрутил я такой конфиг для nginx
server {
    listen 80;
	root /home/adminko/www/api.genarais.tk/public;
	index index.html index.php;
	server_name api.genarais.tk www.api.genarais.tk;
	
        location / { 
        try_files $uri /index.php =404;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
                
          if (!-e $request_filename){ 
             rewrite ^/(.*)/$ /$1 redirect; 
          } 
            if (!-e $request_filename){ 
              rewrite ^(.*)$ /index.php break; 
           } 
        
        }  
}

При открытии мне говорит
Whoops, looks like something went wrong.
Что я намудрил? зарание спасибо
Логи
[2015-07-20 17:00:54] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:29
Stack trace:
#0 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(733): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(626): Illuminate\Container\Container->build(Object(Closure), Array)
#2 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('encrypter', Array)
#3 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(837): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(800): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(771): Illuminate\Container\Container->getDependencies(Array, Array)
#6 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(626): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(123): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(42): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#10 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#11 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array)
#12 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#14 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(118): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#15 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(86): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#16 /home/adminko/www/api.genarais.tk/public/index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#17 {main}  
[2015-07-20 17:00:54] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:29
Stack trace:
#0 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(733): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption\{closure}(Object(Illuminate\Foundation\Application), Array)
#1 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(626): Illuminate\Container\Container->build(Object(Closure), Array)
#2 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('encrypter', Array)
#3 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(837): Illuminate\Foundation\Application->make('Illuminate\\Cont...')
#4 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(800): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter))
#5 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(771): Illuminate\Container\Container->getDependencies(Array, Array)
#6 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Container/Container.php(626): Illuminate\Container\Container->build('App\\Http\\Middle...', Array)
#7 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(674): Illuminate\Container\Container->make('App\\Http\\Middle...', Array)
#8 /home/adminko/www/api.genarais.tk/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(135): Illuminate\Foundation\Application->make('App\\Http\\Middle...')
#9 /home/adminko/www/api.genarais.tk/public/index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response))
#10 {main}
  • Вопрос задан
  • 2474 просмотра
Решения вопроса 2
Denormalization
@Denormalization
>No supported encrypter found. The cipher and / or key length are invalid
Ключ скорее всего не указан в config/app.php (key/cipher)

Сгенерить можно
php artisan key:generate
Ответ написан
alexey-m-ukolov
@alexey-m-ukolov Куратор тега PHP
Откройте лог (storage/logs), там все написано.
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы