Warning in Apache log: Cannot get media type from 'x-mapp-php5'

Posted by IronGoofy on Server Fault See other posts from Server Fault or by IronGoofy
Published on 2011-04-12T18:21:58Z Indexed on 2012/11/19 11:12 UTC
Read the original article Hit count: 266

Filed under:
|

I have no idea what is causing this issue, but it seems to be related to the displayed file (just a simple index.php to print phpinfo) being in an aliased directory. Any suggestions what I can do to avoid the warning?

Here's an excerpt from my httpd.conf:

<Directory "<dir with broken php>">
    Options Indexes FollowSymLinks ExecCGI Includes
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>
Alias /smartersoftware/ "<broken dir>"
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

The last three lines were required to make php work at all (which I found a bit strange, and it may or may not be related to my problem).

Adding a AddType application/x-mapp-php5 .php didn't change anything.

© Server Fault or respective owner

Related posts about apache2

Related posts about httpd.conf