LXC running php application

会有一股神秘感。 提交于 2019-12-12 04:46:12

问题


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 --versionhere.

来源:https://stackoverflow.com/questions/47445343/lxc-running-php-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!