V
V
Vladimir Galynsky2016-02-19 07:36:55
Nginx
Vladimir Galynsky, 2016-02-19 07:36:55

Why doesn't Laravel start on Nginx?

Hello. I decided to try installing Laravel on a virtual machine with Debian 8.3. I used Nginx as a web server. Set up according to this manual . Gives error 500. What could be wrong? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Vasilenko, 2016-02-19
@dvzzz

View the cause of the error in the nginx logs
tail -f /var/log/nginx/access.log

A
Artem Spiridonov, 2016-02-19
@customtema

Does PHP actually work?
Create a test.php file and write in it:

<?
echo phpinfo();

What happens when you navigate to yourlocalsite/test.php?
I often see 500 on new servers because php5-fpm is listening in the wrong place. First, try the test, report the results, depending on this, I will tell you where to treat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question