N
N
Nikita2018-01-28 16:15:19
Yii
Nikita, 2018-01-28 16:15:19

How to catch an error in yii2?

There is api on yii2 that works correctly.
But when migrating to a server (debian 8.0) a 500 Internal Server Error occurs even though I have dev mode enabled. I even tried to just copy all the files from the local to the server and still got a 500 error and it's not clear how to catch it ..(

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem, 2018-01-28
@nikita0509

Road to PHP logs. From experience, there is probably no extension, or something is wrong with the paths.

A
Arman, 2018-01-28
@Arik

I also caught something similar, the problem was that there were no rights to write to the ./runtime folder or the app.log file was under a foreign user and Yii cannot write an error there. Further, by the logs, it is easier to solve problems

K
Konstantin Malyarov, 2018-01-28
@Konstantin18ko

Fix file permissions.
drwxr-xr-x

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question