title: 500 Internal Server Error in PHP files
body: <p>I have a problem. I installed CentOS Web Panel and varnish cache on my VPS server. I have two domains, two hosts on a VPS. One website is using WordPress other is not. Now everything on non-wordpress site is working (html,js,css,picture files...) fine except that PHP files are not working now(Same on WordPress). Just one file is working named <code>testmail.php</code>, which contains: <code>&lt;?php echo phpinfo(); ?&gt;</code>
  Here is apache error log: </p>
  
  <pre><code>[Sat Jul 04 16:29:29 2015] [error] [client 172.***.***.***] Premature end of script headers: testip.php
  [Sat Jul 04 16:29:37 2015] [notice] caught SIGTERM, shutting down
  [Sat Jul 04 16:29:39 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
  [Sat Jul 04 16:29:39 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
  [Sat Jul 04 16:29:40 2015] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips configured -- resuming normal operations
  [Sat Jul 04 16:42:07 2015] [notice] caught SIGTERM, shutting down
  [Sat Jul 04 16:42:21 2015] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
  [Sat Jul 04 16:42:21 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
  [Sat Jul 04 16:42:22 2015] [notice] Apache/2.2.27 (Unix) mod_ssl/2.2.27 OpenSSL/1.0.1e-fips configured -- resuming normal operations
  </code></pre>
  
  <p>I've noticed that i have two <code>php.ini</code> files one is at <code>/etc/php.ini</code> other is at <code>/usr/local/php/php.ini</code> (used by server) and I also have two <code>httpd.conf</code> files one is at <code>/etc/httpd/conf/httpd.conf</code> other is at <code>/usr/local/apache/conf/httpd.conf</code> (used by server). I've also noticed that there are no modules(<code>mod_rewrite.so</code>.. or any other) in second apache config file(used by server). </p>
  
  <p>I tried to change ownership (chown) and tried to change file permissions (chmod) but nothing works. Can you help please?</p>