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

if I go to the homepage of my website (on a brand new server) the index.php gets donwloaded instead than processed. I don't have the same problem on other folders. my .htaccess reads:

AddHandler php5-script .php

what could this be? I suspect it's something with php config / or htaccess, but I'm not able to figure it out. help please!

edit: I don't know if this helps: it's a wordpress installation, I have this problem only on the public part of the website, not on the admin (that renders correctly)

share|improve this question

migrated from Dec 26 '10 at 5:39

This question came from our site for professional and enthusiast programmers.

I believe your handler is wrong. According to you need to use:

# (other modules)
# Replace the following with the correct path and version of your php module
LoadModule php5_module modules/
# (other modules)

<FilesMatch \.php$>
  SetHandler application/x-httpd-php
share|improve this answer
thank you, I tried to change my .htaccess with your code but nothing changes.. is there a way I can test if the module is loading correctly? – alekone Dec 25 '10 at 17:21

Try a simple script, to see if it works. There could be a problem in index.php.

in test.php: 
    <?php echo phpinfo(); ?>
share|improve this answer
he already said it wasn't parsed. – Ablue Dec 30 '10 at 13:53
Mathew - I've moved wordpress installations before and encountered this exact problem, that's why I said that. When I first encountered this, I was also under the assumption that there was an apache config problem, until I discovered that other files were being served just fine, similar to him above saying that the admin pages are being served correctly. – please delete me Dec 30 '10 at 14:25

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.