title: how to display php error message on web page in firefox?
body: <p>Here is my simple codes file  in /var/www/read.php :</p>
  
  <pre><code>error_reporting(E_ALL);
  &lt;?php
      echo hello"
  ?&gt; 
  </code></pre>
  
  <p>I ran across the error reporting  when to run `php /var/www/read.php ' on debian console.</p>
  
  <pre><code>PHP Parse error:  syntax error, unexpected '"', expecting ',' or ';' in /var/www/read.php on line 3
  </code></pre>
  
  <p>But there is no error reporting in web page when to  input <code>127.0.0.1/read.php</code> in firefox.</p>
  
  <p>I have set the values in php.ini as following:</p>
  
  <pre><code>error_reporting = E_ALL &amp; ~E_NOTICE    
  display_errors = On  
  </code></pre>
  
  <p>It is no use for me to restart apache2 with command :</p>
  
  <pre><code>service apache2 restart
  </code></pre>
  
  <p>Here is my phpinfo message.
  It is no use to add two lines in my read.php file,no error message reported in my firefox.How can i fix it?My system is debian7+php .</p>
  
  <pre><code>&lt;?php
      ini_set('display_errors', 1);
      error_reporting(E_ALL);
      echo hello"
  ?&gt; 
  
  find  /  -name  'php.ini'
  /etc/php5/apache2/php.ini
  /etc/php5/cli/php.ini
  </code></pre>
  
  <p>The problem solved according to 
  <a href="https://stackoverflow.com/questions/2648533/php-doesnt-show-any-kind-of-errors/2648859#2648859">PHP doesn&#39;t show any kind of errors</a></p>
  
  <p><img src="https://i.stack.imgur.com/Q3yis.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/UW7Dj.jpg" alt="enter image description here">
  <img src="https://i.stack.imgur.com/l0k91.png" alt="enter image description here"></p>