PMA 4.5.2.0 file_exists():open_basedir限制有效 [英] PMA 4.5.2.0 file_exists(): open_basedir restriction in effect

查看:132
本文介绍了PMA 4.5.2.0 file_exists():open_basedir限制有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从PPA在我的Ubuntu服务器上安装phpMyAdmin之后

After installing phpMyAdmin on my Ubuntu server from PPA

https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin

我收到一系列警告.预先感谢!

I get a series of warnings. Thanks in advance!

./libraries/Util.class.php#521 file_exists()中的警告:open_basedir 有效的限制.文件(doc/html/index.html)不在 允许的路径: (/tmp/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/)

Warning in ./libraries/Util.class.php#521 file_exists(): open_basedir restriction in effect. File(doc/html/index.html) is not within the allowed path(s): (/tmp/:/usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/)

回溯

.//libraries/Util.class.php#521:file_exists(字符串 'doc/html/index.html')./libraries/sanitizing.lib.php#92: PMA_Util :: getDocuLink(字符串'faq',字符串'faq3-11',) PMA_replaceDocLink(array)./libraries/sanitizing.lib.php#152: preg_replace_callback(字符串'/\ [doc @([a-zA-Z0-9 _-] +)\]/',字符串 'PMA_replaceDocLink',字符串'Podríaser aproximado.脉冲电子 确切的意见. Ver [doc @ faq3-11]常见问题解答 3.11.',)./templates/database/structure/table_header.phtml#43:PMA_sanitize(string'Podríaser aproximado.Pulse en elnúmeropara 确切的意见. Ver [doc @ faq3-11]常见问题解答3.11 [/doc].") ./libraries/Template.class.php#80: 包括(./templates/database/structure/table_header.phtml) ./libraries/controllers/DatabaseStructureController.class.php#224: PMA \ Template-> render(array)./db_structure.php#54: PMA \ Controllers \ DatabaseStructureController-> indexAction()

./libraries/Util.class.php#521: file_exists(string 'doc/html/index.html') ./libraries/sanitizing.lib.php#92: PMA_Util::getDocuLink( string 'faq', string 'faq3-11', ) PMA_replaceDocLink(array) ./libraries/sanitizing.lib.php#152: preg_replace_callback( string '/\[doc@([a-zA-Z0-9_-]+)\]/', string 'PMA_replaceDocLink', string 'Podría ser aproximado. Pulse en el número para obtener la cantidad exacta. Ver [doc@faq3-11]FAQ 3.11.', ) ./templates/database/structure/table_header.phtml#43: PMA_sanitize(string 'Podría ser aproximado. Pulse en el número para obtener la cantidad exacta. Ver [doc@faq3-11]FAQ 3.11[/doc].') ./libraries/Template.class.php#80: include(./templates/database/structure/table_header.phtml) ./libraries/controllers/DatabaseStructureController.class.php#224: PMA\Template->render(array) ./db_structure.php#54: PMA\Controllers\DatabaseStructureController->indexAction()

推荐答案

算了,我找到了答案!

在我的Ubuntu Server 14.04中,我编辑了文件/etc/phpmyadmin/apache.conf,并搜索了以下行:

In my Ubuntu Server 14.04, I edited the file /etc/phpmyadmin/apache.conf, and searched for the following line:

php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/

最后添加:/usr/share/doc/phpmyadmin/,警告消失了!

And added :/usr/share/doc/phpmyadmin/ at the end and the warning went away!

这篇关于PMA 4.5.2.0 file_exists():open_basedir限制有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆