Anyone seen anything like this before, and maybe have some pointers where to look Your PHP script is - somehow - being served with the wrong MIME-type. Also implies it isn't being put through the PHP-interpreter. Make sense, but why is the proper MIME type detected when the file is requested explicitly, but not when the file is selected by DirectoryIndex? The latter means auto-negotation, though I can't see why that would affect the mime-type ... /etc/apache2/mime.types contains - application/x-httpd-php phtml pht php php3 php4 php5 Do you also have something along the lines of: AddType application/x-httpd-php php .......
Nope, and adding it to httpd.conf or mod_mime.conf doesn't seem to have any effect. Also of note, my other server which works fine, doesn't seem to have this diretive anywhere. --- other server that works --- tor:/etc/apache2 # grep -d recurse -i addtype * extra/httpd-ssl.conf:AddType application/x-x509-ca-cert .crt extra/httpd-ssl.conf:AddType application/x-pkcs7-crl .crl mod_mime-defaults.conf:# AddType allows you to add to or override the MIME configuration mod_mime-defaults.conf:#AddType application/x-tar .tgz mod_mime-defaults.conf:AddType application/x-compress .Z mod_mime-defaults.conf:AddType application/x-gzip .gz .tgz mod_mime-defaults.conf:Addtype image/x-icon .ico mod_mime-defaults.conf:#AddType text/html .shtml ssl-global.conf: AddType application/x-x509-ca-cert .crt ssl-global.conf: AddType application/x-pkcs7-crl .crl