I am working with a LAMP architecture, with apache2 server, php7.0 and MYSql, in ubuntu 16.04, and managed to configure the route for my development, in this case, that goes from /var/www/
to /var/www/html/midesarrollo
, to prove it create a phpinfo file as follows <?php phpinfo(); ?>
called Hola.php , leaving the following output:
However, when I try to access my index.html , it does not present anything to me; the index.html code is a call to three .php files, require_once("mod/Header.php");
require_once("mod/body.php");
require_once("mod/footer.php");
When I inspect the item with the browser I have the following output:
where you notice that you comment on the php script, which should not happen because php is on the server and php it works, as seen in the first image, but it fails as seen in the second image, at this moment I do not know what can happen, what I read tells me that this module may not be libapache2-mod-php7.0
, but this module will I installed with php, on the other hand I changed the ext from the .html file to .php, even though this should not be relevant. but the results were the same.
I appreciate you can help me.