0
Hello, good night!
I have installed in my PC Apache2 and php7.2. Only when I try to run a file.php in the browser Firefox it returns me the same file for me to download. I have already searched in Google the solution to this problem but none of the presented solved.
The code is simple:
<<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<script src="main.js"></script>
</head>
<body>
<?php echo "Olá mundo!"; ?>
</body>
</html>
So, I appreciate any help!
Did you put the file in the folder that distributes it to the web? is accessing the url provided by apache?
– Lodi
The url I use is this : localhost/myprogram/file.php.
– Ícaro Timóteo
which operating system?
– Lodi
Ubuntu 18.04 LTS
– Ícaro Timóteo