Apache 2 server on ubuntu can't parse php code inside html file

前端 未结 4 2039
北荒
北荒 2020-12-17 07:32

I installed apache2, php5 and the php5 apache module on Ubuntu 13.04.

Php is working on .php files but lines of php code inside html files do not execute.

Go

4条回答
  •  天命终不由人
    2020-12-17 07:59

    Add the following lines in /etc/apache2/mods-available/php7.0.conf SetHandler application/x-httpd-php

    this worked for me. Thx Lukjar

提交回复
热议问题