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

Before the update php 5.3.3 worked fine, now the apache offers to download php sites instead of processing them.

What I did: I used the REMI repo to get php 5.4 for centos 6.5. I think that all steps have been processed normally. In /etc/httpd/modules I can find the new files:

I restarted the apache.

Here are some outputs I used to verify that the components work:

php -v 
PHP 5.4.28 (cli) (built: May  2 2014 19:09:57)  
Copyright (c) 1997-2014 The PHP Group 
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

apachectl -t -D DUMP_MODULES 
php5_module (shared)

Any ideas what I missed? Is this a problem of the SELinux?

share|improve this question

closed as off-topic by devicenull, mdpc, MadHatter, Jacob, MichelZ May 7 '14 at 17:15

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – devicenull, mdpc, MadHatter, Jacob
If this question can be reworded to fit the rules in the help center, please edit the question.

Check if you still have this line in apache config

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

After restart, please test again in different browser to bypass caching mechanism on particular browser.

share|improve this answer
Did not work this way, but pointed to the right direction. – Alex004 May 7 '14 at 8:26

I got it. In my case httpd.conf includes php.conf. In php.conf I changed in

<FilesMatch \.php$>
    SetHandler application/x-httpd-php


<FilesMatch \.php$>
    SetHandler application/x-httpd-php5

For some reason they used another naming convention.

share|improve this answer

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