lnmp环境phpmyadmin首页空白

打开phpmyadmin首页,一片空白,什么提示报错也没有,折腾到深夜3点,无果。第二天早上又继续换了好几个关键词搜索,才找到和我情况匹配的答案,原来是我禁用了ini_set函数。
原帖内容:


由于phpmyadmin3.3.7版本的已知漏洞,存在安全性问题,所以打算升级phpmyadmin,从官方下载后,放到服务器,运行不正常,访问phpMyAdmin 3.4.7中任何php程序都显示空白页。首先根据pma的手册:(内容如下)Requirements

PHP
You need PHP 5.2.0 or newer, with session support (see FAQ 1.31) , the Standard PHP Library (SPL) extension and JSON support.
To support uploading of ZIP files, you need the PHP zip extension.
For proper support of multibyte strings (eg. UTF-8, which is currently the default), you should install the mbstring and ctype extensions.
You need GD2 support in PHP to display inline thumbnails of JPEGs ("image/jpeg: inline") with their original aspect ratio
When using the "cookie" authentication method, the mcrypt extension is strongly suggested for most users and is required for 64–bit machines. Not using mcrypt will cause phpMyAdmin to load pages significantly slower.
To support upload progress bars, see FAQ 2.9.
To support BLOB streaming, see PHP and MySQL requirements in FAQ 6.25.
MySQL 5.0 or newer (details);
Web browser with cookies enabled.

分别检测是那一块出了问题。

放一个
<php
phpinfo();
?>

看了下,符合要求,郁闷了!

只好,一步步调试程序。
最后发现
php配置文件把ini_set禁用了,phpmyadmin程序要使用ini_set
所以出现了白页。

原帖:http://www.phpnice.com/thread-344-1-1.html

去看自己的php.ini配置,果然禁用了ini_set,可是为什么会禁用这个函数呢?
直到今天下午在一次安装lnmp,才想起来是自己自做聪明禁用了ini_set。看到网上一些文章中列出的一些应该被禁用的危险函数,其中包括ini_set,我就去查看自己的disable_functions列表,发现有两个ini_alter,就觉的是lnmp的bug,想当然的把一个ini_alter改成了ini_set。

这一改,又被电脑玩到几近通宵,看来VPS还真不好玩,搞不好就被VPS玩了。

3 thoughts on “lnmp环境phpmyadmin首页空白

回复 聚知网 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注