title: php files being downloaded instead of rendered in browser over ssl
body: <p>having an issue with my php/apache config.  Files will render fine over http.  Over https, however, files are prompted for download/saving.  Weird thing is that images are rendering over https.</p>
  
  <p>SSL Config tested as installed correctly on several sites.  Also, should be noted that this is in a plesk environment, but I am installing via shell access.</p>
  
  <p>Virtual Host section is below:</p>
  
  <p></p>
  
  <pre><code> AddType text/html .php 
   AddType application/x-httpd-php .php
  
     ErrorLog /etc/httpd/logs/smartsites_error_log
  
     CustomLog /etc/httpd/logs/smartsites_access_log common
  
  ServerName secure.cognitionsmartsites.com
  
       &lt;Directory "/var/www/vhosts/default/htdocs"&gt;
      Allow from all
              Options +Indexes
  &lt;/Directory&gt;
  
      IndexOptions
  ServerAlias  secure.cognitionsmartsites.com
  
  #UseCanonicalName Off
  DocumentRoot /var/www/vhosts/default/htdocs
  
  #ScriptAlias /cgi-bin/ "/var/www/vhosts/default/cgi-bin/"
  
  SSLEngine On
  
  #SSLVerifyClient none
  #SSLCertificateFile /usr/local/psa/var/certificates/cert-L6E8a0
  
      SSLCertificateFile /usr/local/psa/var/certificates/cert.crt
      SSLCertificateKeyFile /usr/local/psa/var/certificates/private.key
      SSLCertificateChainFile /usr/local/psa/var/certificates/intermediate.crt
  </code></pre>
  
  <p></p>