Z
Z
ZaurK2017-12-05 11:14:36
Yii
ZaurK, 2017-12-05 11:14:36

Why is there a 500 error in yii2?

Welcome all! I decided to study vagrant and raised a yii2 project on it, everything worked well, but suddenly a 500 error began to appear and I can’t understand the reason. I demolished the vagrant with the vagrant destroy command and reinstalled vagrant up, but still the error 500. Please help me understand the cause of this error and how to fix it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander N++, 2017-12-05
@ZaurK

http logs are viewed from the server, then from php.
we also look at the logs from the application runtime/log/app.log.
we also take each query to the database and analyze through explain for sure there is no index on a large table.
you can put newrealic or similar monitoring and find everything that slows down even faster.

Z
ZaurK, 2017-12-05
@ZaurK

Thanks for the answers, I looked in the logs, the error was in the syntax of the files I wrote, fixed the errors, did vagrant up and it worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question