Apache is downloading php files instead of displaying them

后端 未结 26 1714
陌清茗
陌清茗 2020-11-22 01:03

OS and server information:

  • CentOS 6.4 (Final)
  • Apache 2.2.15
  • PHP 5.5.1

I previously had php 5.3.x installed but decided to upgr

26条回答
  •  猫巷女王i
    2020-11-22 01:41

    I have the same problem. Apache doesn't load php files from a certain website, just downloaded it. I read this post and the answers and I have seen I've got this line into the last place of the .htaccess file:

    AddHandler x-mapp-php5.5  .php
    

    I have commented it and everything works fine.

    Thanks to all !!!

提交回复
热议问题