title: Php errors is not showing on Browsers , its showing only in log - php 7.1
body: <pre><code>server {
      listen 80 ;
      listen [::]:80 ;
      server_name php.local.com;
  
      root   /var/www/html/php/;
      index  index.php;
      error_log /var/www/html/php/error.log;
  
      # set expiration of assets to MAX for caching
          location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
                  expires max;
                  log_not_found off;
          }
      # main codeigniter rewrite rule
      location / {
          try_files $uri $uri/ /index.php;
      }
  
          # php parsing
          location ~ .php$ {
              root           /var/www/html/php/;
              try_files $uri =404;
              fastcgi_pass   unix:/var/run/php/php7.1-fpm.sock;
              fastcgi_index  index.php;
              fastcgi_param  SCRIPT_FILENAME  
              $document_root$fastcgi_script_name;
              include        fastcgi_params;
              fastcgi_buffer_size 128k;
              fastcgi_buffers 256 4k;
              fastcgi_busy_buffers_size 256k;
              fastcgi_temp_file_write_size 256k;
          }
  
  }
  </code></pre>
  
  <p>Its showing error in log but not on browser.</p>
  
  <p>Example of Error : </p>
  
  <blockquote>
    <p>2019/08/06 01:28:13 [error] 14325#14325: *1 FastCGI sent in stderr:
    "PHP message: PHP Parse error:  syntax error, unexpected '?>' in
    /var/www/html/php/scalar_type.php on line 18" while reading response
    header from upstream, client: 127.0.0.1, server: php.local.com,
    request: "GET /scalar_type.php HTTP/1.1", upstream:
    "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "php.local.com",
    referrer: "<a href="http://php.local.com/" rel="nofollow noreferrer">http://php.local.com/</a>"</p>
  </blockquote>