@vasIvas

Почему после перемещения сайта он перестал работать?

В nginx прописан root /home/user/server/example.com/public, то есть проект laravel был создан прямо в директории example.com. Теперь мне понадобилось добавить туда ещё несколько директорий и я решил собрать laravel в папку back-end. И теперь путь указываю так root /home/user/server/example.com/back-end/public, но в браузере вместо сайта выводится сообщение
Whoops, looks like something went wrong.

Как это исправить?

Вот ЧАСТЬ дебаг лога, так как Тостер не дает вставить весь.
2015/11/23 15:21:46 [debug] 8259#0: bind() 0.0.0.0:80 #7 
2015/11/23 15:21:46 [debug] 8259#0: bind() [::]:80 #8 
2015/11/23 15:21:46 [debug] 8259#0: counter: 00007FBB484DD080, 1
2015/11/23 15:21:46 [debug] 8259#0: posix_memalign: 00000000015A7960:16384 @16
2015/11/23 15:21:47 [debug] 8263#0: bind() 0.0.0.0:80 #7 
2015/11/23 15:21:47 [debug] 8263#0: bind() [::]:80 #8 
2015/11/23 15:21:47 [notice] 8263#0: using the "epoll" event method
2015/11/23 15:21:47 [debug] 8263#0: counter: 00007FC4F8815080, 1
2015/11/23 15:21:47 [debug] 8263#0: posix_memalign: 0000000000FBF940:16384 @16
2015/11/23 15:21:47 [notice] 8263#0: nginx/1.4.6 (Ubuntu)
2015/11/23 15:21:47 [notice] 8263#0: built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04) 
2015/11/23 15:21:47 [notice] 8263#0: OS: Linux 3.19.0-33-generic
2015/11/23 15:21:47 [notice] 8263#0: getrlimit(RLIMIT_NOFILE): 1024:4096
2015/11/23 15:21:47 [debug] 8264#0: write: 17, 00007FFC4BD48590, 5, 0
2015/11/23 15:21:47 [debug] 8264#0: setproctitle: "nginx: master process /usr/sbin/nginx"
2015/11/23 15:21:47 [notice] 8264#0: start worker processes
2015/11/23 15:21:47 [debug] 8264#0: channel 3:17
2015/11/23 15:21:47 [notice] 8264#0: start worker process 8265
2015/11/23 15:21:47 [debug] 8264#0: channel 18:19
2015/11/23 15:21:47 [debug] 8265#0: malloc: 0000000000EE1CA0:6144
2015/11/23 15:21:47 [debug] 8265#0: malloc: 0000000000FC3950:147456
2015/11/23 15:21:47 [debug] 8265#0: malloc: 0000000000FE7960:79872
2015/11/23 15:21:47 [debug] 8265#0: malloc: 0000000000FFB170:79872
2015/11/23 15:21:47 [notice] 8264#0: start worker process 8266
2015/11/23 15:21:47 [debug] 8264#0: pass channel s:1 pid:8266 fd:18 to s:0 pid:8265 fd:3
2015/11/23 15:21:47 [debug] 8264#0: channel 20:21
2015/11/23 15:21:47 [debug] 8265#0: shmtx lock
2015/11/23 15:21:47 [debug] 8265#0: slab alloc: 224 slot: 5
2015/11/23 15:21:47 [debug] 8265#0: slab alloc: 00007FC4F07FA000
2015/11/23 15:21:47 [debug] 8265#0: shmtx unlock
2015/11/23 15:21:47 [debug] 8265#0: epoll add event: fd:10 op:1 ev:00000001
2015/11/23 15:21:47 [debug] 8265#0: epoll add event: fd:17 op:1 ev:00000001
2015/11/23 15:21:47 [debug] 8265#0: setproctitle: "nginx: worker process"
2015/11/23 15:21:47 [debug] 8265#0: worker cycle
2015/11/23 15:21:47 [debug] 8265#0: accept mutex locked
2015/11/23 15:21:47 [debug] 8265#0: epoll timer: -1
2015/11/23 15:21:47 [debug] 8265#0: epoll: fd:17 ev:0001 d:0000000000FC3B90
2015/11/23 15:21:47 [debug] 8265#0: post event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: timer delta: 33
2015/11/23 15:21:47 [debug] 8265#0: posted events 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: posted event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: delete posted event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: channel handler
2015/11/23 15:21:47 [debug] 8265#0: channel: 32
2015/11/23 15:21:47 [debug] 8265#0: channel command: 1
2015/11/23 15:21:47 [debug] 8265#0: get channel s:1 pid:8266 fd:3
2015/11/23 15:21:47 [debug] 8265#0: channel: -2
2015/11/23 15:21:47 [debug] 8265#0: posted event 0000000000000000
2015/11/23 15:21:47 [debug] 8265#0: worker cycle
2015/11/23 15:21:47 [debug] 8265#0: accept mutex locked
2015/11/23 15:21:47 [debug] 8265#0: epoll timer: -1
2015/11/23 15:21:47 [notice] 8264#0: start worker process 8267
2015/11/23 15:21:47 [debug] 8264#0: pass channel s:2 pid:8267 fd:20 to s:0 pid:8265 fd:3
2015/11/23 15:21:47 [debug] 8264#0: pass channel s:2 pid:8267 fd:20 to s:1 pid:8266 fd:18
2015/11/23 15:21:47 [debug] 8264#0: channel 22:23
2015/11/23 15:21:47 [debug] 8266#0: malloc: 0000000000EE1CA0:6144
2015/11/23 15:21:47 [debug] 8266#0: malloc: 0000000000FC3950:147456
2015/11/23 15:21:47 [debug] 8266#0: malloc: 0000000000FE7960:79872
2015/11/23 15:21:47 [debug] 8266#0: malloc: 0000000000FFB170:79872
2015/11/23 15:21:47 [debug] 8266#0: shmtx lock
2015/11/23 15:21:47 [debug] 8266#0: shmtx unlock
2015/11/23 15:21:47 [debug] 8266#0: epoll add event: fd:12 op:1 ev:00000001
2015/11/23 15:21:47 [debug] 8266#0: epoll add event: fd:19 op:1 ev:00000001
2015/11/23 15:21:47 [debug] 8266#0: setproctitle: "nginx: worker process"
2015/11/23 15:21:47 [debug] 8266#0: worker cycle
2015/11/23 15:21:47 [debug] 8266#0: accept mutex lock failed: 0
2015/11/23 15:21:47 [debug] 8266#0: epoll timer: 500
2015/11/23 15:21:47 [debug] 8266#0: epoll: fd:19 ev:0001 d:0000000000FC3B90
2015/11/23 15:21:47 [debug] 8266#0: channel handler
2015/11/23 15:21:47 [debug] 8266#0: channel: 32
2015/11/23 15:21:47 [debug] 8266#0: channel command: 1
2015/11/23 15:21:47 [debug] 8266#0: get channel s:2 pid:8267 fd:17
2015/11/23 15:21:47 [debug] 8266#0: channel: -2
2015/11/23 15:21:47 [debug] 8266#0: timer delta: 36
2015/11/23 15:21:47 [debug] 8266#0: posted events 0000000000000000
2015/11/23 15:21:47 [debug] 8266#0: worker cycle
2015/11/23 15:21:47 [debug] 8266#0: accept mutex lock failed: 0
2015/11/23 15:21:47 [debug] 8266#0: epoll timer: 500
2015/11/23 15:21:47 [debug] 8265#0: epoll: fd:17 ev:0001 d:0000000000FC3B90
2015/11/23 15:21:47 [debug] 8265#0: post event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: timer delta: 3
2015/11/23 15:21:47 [debug] 8267#0: malloc: 0000000000EE1CA0:6144
2015/11/23 15:21:47 [debug] 8265#0: posted events 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: posted event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: delete posted event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: channel handler
2015/11/23 15:21:47 [debug] 8267#0: malloc: 0000000000FC3950:147456
2015/11/23 15:21:47 [debug] 8265#0: channel: 32
2015/11/23 15:21:47 [debug] 8265#0: channel command: 1
2015/11/23 15:21:47 [debug] 8267#0: malloc: 0000000000FE7960:79872
2015/11/23 15:21:47 [debug] 8265#0: get channel s:2 pid:8267 fd:19
2015/11/23 15:21:47 [debug] 8265#0: channel: -2
2015/11/23 15:21:47 [debug] 8265#0: posted event 0000000000000000
2015/11/23 15:21:47 [debug] 8265#0: worker cycle
2015/11/23 15:21:47 [debug] 8265#0: accept mutex locked
2015/11/23 15:21:47 [debug] 8265#0: epoll timer: -1
2015/11/23 15:21:47 [notice] 8264#0: start worker process 8270
2015/11/23 15:21:47 [debug] 8264#0: pass channel s:3 pid:8270 fd:22 to s:0 pid:8265 fd:3
2015/11/23 15:21:47 [debug] 8264#0: pass channel s:3 pid:8270 fd:22 to s:1 pid:8266 fd:18
2015/11/23 15:21:47 [debug] 8264#0: pass channel s:3 pid:8270 fd:22 to s:2 pid:8267 fd:20
2015/11/23 15:21:47 [debug] 8264#0: sigsuspend
2015/11/23 15:21:47 [debug] 8266#0: epoll: fd:19 ev:0001 d:0000000000FC3B90
2015/11/23 15:21:47 [debug] 8266#0: channel handler
2015/11/23 15:21:47 [debug] 8267#0: malloc: 0000000000FFB170:79872
2015/11/23 15:21:47 [debug] 8266#0: channel: 32
2015/11/23 15:21:47 [debug] 8266#0: channel command: 1
2015/11/23 15:21:47 [debug] 8266#0: get channel s:3 pid:8270 fd:18
2015/11/23 15:21:47 [debug] 8266#0: channel: -2
2015/11/23 15:21:47 [debug] 8266#0: timer delta: 5
2015/11/23 15:21:47 [debug] 8266#0: posted events 0000000000000000
2015/11/23 15:21:47 [debug] 8266#0: worker cycle
2015/11/23 15:21:47 [debug] 8266#0: accept mutex lock failed: 0
2015/11/23 15:21:47 [debug] 8266#0: epoll timer: 500
2015/11/23 15:21:47 [debug] 8265#0: epoll: fd:17 ev:0001 d:0000000000FC3B90
2015/11/23 15:21:47 [debug] 8265#0: post event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: timer delta: 5
2015/11/23 15:21:47 [debug] 8265#0: posted events 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: posted event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: delete posted event 0000000000FE7A98
2015/11/23 15:21:47 [debug] 8265#0: channel handler
2015/11/23 15:21:47 [debug] 8265#0: channel: 32
2015/11/23 15:21:47 [debug] 8265#0: channel command: 1
2015/11/23 15:21:47 [debug] 8265#0: get channel s:3 pid:8270 fd:20
2015/11/23 15:21:47 [debug] 8265#0: channel: -2
2015/11/23 15:21:47 [debug] 8265#0: posted event 0000000000000000
2015/11/23 15:21:47 [debug] 8265#0: worker cycle
2015/11/23 15:21:47 [debug] 8265#0: accept mutex locked
2015/11/23 15:21:47 [debug] 8265#0: epoll timer: -1
2015/11/23 15:21:47 [debug] 8267#0: shmtx lock
2015/11/23 15:21:47 [debug] 8267#0: shmtx unlock
2015/11/23 15:21:47 [debug] 8267#0: epoll add event: fd:14 op:1 ev:00000001
2015/11/23 15:21:47 [debug] 8267#0: epoll add event: fd:21 op:1 ev:00000001
2015/11/23 15:21:47 [debug] 8267#0: setproctitle: "nginx: worker process"
2015/11/23 15:21:47 [debug] 8267#0: worker cycle
2015/11/23 15:21:47 [debug] 8267#0: accept mutex lock failed: 0
2015/11/23 15:21:47 [debug] 8267#0: epoll timer: 500
2015/11/23 15:21:47 [debug] 8267#0: epoll: fd:21 ev:0001 d:0000000000FC3B90
2015/11/23 15:21:47 [debug] 8267#0: channel handler
2015/11/23 15:21:47 [debug] 8267#0: channel: 32
2015/11/23 15:21:47 [debug] 8267#0: channel command: 1
2015/11/23 15:21:47 [debug] 8267#0: get channel s:3 pid:8270 fd:17
2015/11/23 15:21:47 [debug] 8267#0: channel: -2
2015/11/23 15:21:47 [debug] 8267#0: timer delta: 42
2015/11/23 15:21:47 [debug] 8267#0: posted events 0000000000000000
2015/11/23 15:21:47 [debug] 8267#0: worker cycle
2015/11/23 15:21:47 [debug] 8267#0: accept mutex lock failed: 0
  • Вопрос задан
  • 456 просмотров
Решения вопроса 1
Для начала, стоит включить debug mode + посмотреть логи Вашего веб-сервера. Пока что, ваш вопрос выглядит как: "Ничего не работает, как мне это исправить?!". Короче, нужно больше инфы.

Судя по логам, которые ты приложил в комментарий к ответу, а именно:
[2015-11-23 12:38:07] production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /home/ivan/server/dark-side.ru/back-end/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:29


Проблема в том, что в файлике config/app.php ты забыл поменять код приложения. Для того, чтобы всё заработало, тебе нужно в консоли, из корня твоего приложения запустить:
php artisan key:generate
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
borodka_lenina
@borodka_lenina
=)
А с правами как там? Если под рутом перемещали то надо права через chown выставить как у материнской директории.
Ответ написан
Комментировать
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы