You can set your error log in your nginx site configuration file: nginx/sites/sites-available/{RELEVANT SITE FILE} .
Make sure you have this inside your file:
error_log /var/www/logs/nginx.error.log debug_http;
You can also try using the php error report:
<?php error_reporting(E_ALL); ini_set('display_errors', '1');
Another thing to keep in mind is if you donβt output anything at all, then it may also appear as an error, check out this other postoverflow post .
source share