So i had to reconfigure my linux server because i migrated it to another system and decided to set it up from scratch just for fun and practice. Only issue is that now my LAMP
is running with PHP7
instead of PHP5
like i had last time. The issue im running into is that my HTML/HTML5
files are not running or being processed as PHP
. I have created the .htaccess
file and changed from AddType
and AddHandler
, changed application/x-httpd-php70
to application/x-httpd-php7
, application/x-httpd-php7.0
and different variations of that but it is still not working at all. What i do see is that part of the PHP
code is visible as such.
I did notice that if i remove the <p></p>
from my php code, all the php is hidden again. Also changed up the " "
to ' '
and double checked that no syntax has changed from php5
to php7
which it has not. I have tested a .php
file with <?php phpinfo(); ?>
and works perfect as long as its .php
. As soon as it is changed to .html
that is when it stops working. PHP modules are enabled in apache2.4
. I have restarted apache2.4 countless times when changing files in the web root and i have reviewed tutorials on how to install PHP7 with apache2.4 on ubuntu. I actually installed LAMP during the server installation so i dont see why it would be wrong. I am completely out of ideas. Much much help with this, i have been battling this for nearly 4 days now.