Apache shows PHP code instead of executing it

前端 未结 26 2106
爱一瞬间的悲伤
爱一瞬间的悲伤 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:09

    You must enable php! Check the folder mods-enabled in the Apache directory (default: /etc/apache2/) to see if you find a file named php. I don't remember the extension but I think it's .so.

    Also check in /var/log/apache2/error.log to see if you have any other errors.

提交回复
热议问题