S
S
Sergey2016-10-08 11:39:58
Nginx
Sergey, 2016-10-08 11:39:58

Laravel gives 500 error on Nginx, what should I do?

I downloaded the Laravel PHP framework from Github, unpacked it into the nginx folder on the server, set up nginx, everything was standard, as always, done location c try_files $uri $uri/ /index.php?$query_string; . Specified the root folder in public.
I go to the domain issues 500 HTTP ERROR. I do not know what to do. PHP has all the necessary modules. I read that there may be a problem with access rights, I set everything to 755 and 777, it's still an error.
By the way, this is what the nginx logs say:

2016/10/08 04:36:32 [error] 12167#0: *51670 FastCGI sent in stderr: "PHP message: PHP Warning:  require(/usr/share/nginx/qtem/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /usr/share/nginx/qtem/bootstrap/autoload.php on line 17
PHP message: PHP Fatal error:  require(): Failed opening required '/usr/share/nginx/qtem/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/nginx/qtem/bootstrap/autoload.php on line 17" while reading response header from upstream, client: 180.76.15.6, server: qtem.ru, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "qtem.ru"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-10-08
@goodwin74

логично. и причина указана в ошибке.
читаем https://laravel.com/docs/5.3/installation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question