title: .htaccess php_value display_errors settings breaks with error 500
body: <p>I installed new XAMPP version 1.8.1 for windows with Apache 2.4.3 and PHP 5.4.7.</p>
  
  <p>None of my sites are working, returning HTTP Error 500 (Internal Server Error). I traced the reason to this .htaccess line</p>
  
  <pre>
  php_value display_errors off
  </pre>
  
  <p>When I comment it, site works. I have other php_value command's that works just fine eq. <code>php_value error_reporting -1</code>.</p>
  
  <p>Google for solution, people say PHP must be loaded as Dynamic Shared Object (DSO) aka. Apache module. Which in my case is so (httpd-xampp.conf):</p>
  
  <pre>
  LoadFile "/xampp/php/php5ts.dll"
  LoadModule php5_module "/xampp/php/php5apache2_4.dll"
  </pre>
  
  <p>So this is not what is creating a problem.</p>
  
  <p>I would prefer solution that keeps <code>php_value display_errors off</code> inside .htaccess file for the sake of other people it my team.</p>
  
  <p>pls help</p>
  
  <p><strong>== NEW DEVELOPMENT ==</strong></p>
  
  <p>After commenting unrelated parts of .htaccess file that was using mod_expires.c and was badly writen, aka. correct way is to put it in if example:</p>
  
  <pre>
  &lt;IfModule mod_expires.c&gt;
     ExpiresActive On
     &lt;FilesMatch "\.(gif|jpg|jpeg|tif|tiff|bmp|png|js|css|ico)$"&gt;
         ExpiresDefault "access plus 10 years"
     &lt;/FilesMatch&gt;
  &lt;/IfModule>
  </pre>
  
  <p>500 error was gone and php_value instructions work.</p>
  
  <p>So if you are in similar situation comment or remove all unrelated lines and try to pint point where the problems is.</p>