Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Alias /smartersoftware/ "<broken dir>"
<FilesMatch \.php$>
    SetHandler application/x-httpd-php

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.

share|improve this question
What's your httpd.conf like? – random Apr 13 '11 at 22:19

I would guess you have to add the addhandler in httpd.conf AddHandler x-mapp-php5 .php

share|improve this answer
Thanks for the suggestion, but this doesn't change anything. As I understand addhandler, it just tells Apache that .php files are to be handled by x-mapp-php5. However, the error seems to indicate that it doesn't know what to do with this kind of file. – IronGoofy Apr 15 '11 at 6:33

Try to find and remove/comment

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

from your apache configs and .htaccess file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.