Why the server gives a 500 error?

0 like 0 dislike
3 views
Hello!

With composer installed laravel on your server. If you try to go on / the server gives a 500 error. Here are the latest logs:

[Fri May 04 16:04:44.016150 2018] [:error] [pid 42611] [client ###:162.1:16272] PHP Parse error: syntax error, unexpected '?' in /var/www/shop-l/vendor/symfony/http-foundation/Response.php on line 491


Here's the code on line 491 Response.php:

public function getCharset(): ?string
Please tell me what could be wrong
by | 3 views

1 Answer

0 like 0 dislike
Well, the discussion found that after installing php latest version of apache has not been configured to use it.
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
7 answers
asked Mar 24, 2019 by EVEN
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
33,905 users