Apache is downloading php files instead of displaying them

后端 未结 26 1104
陌清茗
陌清茗 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条回答
  •  一生所求
    2020-11-22 01:31

    I spent two days tracking this and found out that I was putting my PHP scripts in the wrong directory.

    On my standard Ubuntu installation, I was putting the scripts in /var/www. They should have been in /var/www/html.

    I just started PHP work, so I don't know if my solution relates to the version change you went through.

提交回复
热议问题