VPS侦探论坛

 找回密码
 注册
查看: 4305|回复: 1

求助phpmyadin访问显示空白

[复制链接]
发表于 2015-5-17 14:23:34 | 显示全部楼层 |阅读模式

不知道什么原因访问显示空白了,我测试了下,MYSQL跟php连接是正常的。
后来打开了PHP 的错误提示,如下:
  • [size=1em]Warning: require_once(): open_basedir restriction in effect. File(/home/wwwroot/default/phpmyadmin/libraries/common.inc.php) is not within the allowed path(s): (/home/wwwroot/www.lnmp.org/:/tmp/) in /home/wwwroot/default/phpmyadmin/index.php on line 11 Warning: require_once(/home/wwwroot/default/phpmyadmin/libraries/common.inc.php): failed to open stream: Operation not permitted in /home/wwwroot/default/phpmyadmin/index.php on line 11 Fatal error: require_once(): Failed opening required 'libraries/common.inc.php' (include_path='.:') in /home/wwwroot/default/phpmyadmin/index.php on line 11


美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-5-17 19:55:26 | 显示全部楼层


你的open_basedir 设置的问题,你phpmyadmin就在/home/wwwroot/default/ 下,你非限制到/home/wwwroot/www.lnmp.org/能正常才怪
注释掉你自己设置的open_basedir参数
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-27 19:25 , Processed in 0.024822 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表