问题
I have this code in file called index.html in directory /var/www/html/index.html
.
<html>
<body>
<?php
echo phpinfo();
?>
</html>
</body>
But when I try to see what it prints on the browser it doesn't show anything at all, or sometimes it downloads a file. This is what browser prints (Nothing).
If I try to look the source code and it seems like this. I'm not sure what I'm doing wrong. I searched a lot and tried a few things, but nothing really seemed to work.
I'd really appreciate if someone could list me some things to look up or where's the solution to this problem. I think it'll be very simple but I have no idea of what to do now.
edit: output of php --version
here.
来源:https://stackoverflow.com/questions/47445343/lxc-running-php-application