Apache is downloading php files instead of displaying them

后端 未结 26 1157
陌清茗
陌清茗 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:29

    This might be happening due to the missing modules required for your php. Assuming you have php7 installed, search available php7 modules using

    sudo apt-cache search php7-*
    

    Above command will list all available PHP7 modules for installation. You can begin installation of modules like,

    sudo apt-get install libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json
    

提交回复
热议问题