Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 LAMP 堆栈上,我刚刚sudo apt-get update && sudo apt-get upgrade在 Ubuntu 中做了一个。然后我去了我的一个本地主机站点,它加载正常并且运行正常。
sudo apt-get update && sudo apt-get upgrade
然后我需要在 PHP 信息页面上查看一些信息,所以我创建了 phpinfo.php
<?php phpinfo(); ?>在里面,转到 Chromium 浏览器中的页面,什么也没有。我得到一个空白页。我检查了 Apache2 error.log 但没有错误。
<?php phpinfo(); ?>
对此的任何帮助将不胜感激。
在 php.ini 文件中搜索以下行:
disable_functions = phpinfo
并将其更改为
disable_functions =
(我认为评论它也会起作用)