'Nginx doesn't show php error even display_error is on
I have a website with nginx and php here my phpinfo
https://sundaysea.com/phpinfo.php
as you can see in phpinfo that display_error is on but in this page https://sundaysea.com/clementcheng-com/
the page gets an 500 error and doesn't show any error. I tried to look into log files but there is nothing about this also
can you please help me to know where is the error?
I added this to my wp-config.php file also, it's a wordpress site
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', true );
@ini_set( 'display_errors', 1 );
Solution 1:[1]
when you restart nginx it doesn't restart php. try
$ sudo service php7.4-fpm restart
it helped me. But you set your php version
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | hayk kyureghyan |
