V
V
vasIvas2015-11-23 14:36:59
Nginx
vasIvas, 2015-11-23 14:36:59

Why did the site stop working after moving the site?

Root /home/user/server/example.com/public is registered in nginx, that is, the laravel project was created directly in the example.com directory. Now I needed to add a few more directories there and I decided to build laravel in the back-end folder. And now I specify the path as root /home/user/server/example.com/back-end/public, but in the browser a message is displayed instead of the site

Whoops, looks like something went wrong.

How to fix it?
Here is a PART of the debug log, since the Toaster does not allow you to insert the whole.
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

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Degtyaruk, 2015-11-23
@vasIvas

For starters, you should turn on debug mode + look at the logs of your web server. So far, your question looks like: "Nothing works, how do I fix this?!". In short, more information is needed.
Judging by the logs that you attached in a comment to the answer, namely:
The problem is that you forgot to change the application code in the config/app.php file. In order for everything to work, you need to run in the console, from the root of your application:
php artisan key:generate

B
borodka_lenina, 2015-11-23
@borodka_lenina

And what about rights? If you moved under the root, then you need to set the rights through chown as in the parent directory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question