HTTP Error 500 (v2022)

Hello everyone.I have HTTP ERROR 500.
I don’t know how to check this error.
I enabled logs. But log file is empty.
I removed htaccess.
But on browser I see only HTTP ERROR 500.
How can I display errors?

Please enable debug and check HTTP response to see the error message in more detail.

I did it all. But it not solved my problem.
PHPMaker 2022
php 8.1.12
AWS, ubuntu 22

Is that in localhost or in your production server?