Apache shows PHP code instead of executing it

前端 未结 26 1580
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 02:23

I have recently been trying to install PHP and Apache on my computer. After many hours, they\'re installed. I have modified the httpd.conf and php.ini files like everyone sa

26条回答
  •  粉色の甜心
    2020-11-22 03:03

    Wow, lots of solutions here! Here's what I did on Ubuntu 16.04:

    sudo apt-get install php libapache2-mod-php
    sudo a2enmod mpm_prefork && sudo a2enmod php7.0
    sudo service apache2 restart
    

提交回复
热议问题