在我的Ubuntu服务器上从PPA安装phpMyAdmin之后
https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin
我收到一系列警告。 提前致谢!
警告在./libraries/Util.class.php#521 file_exists():open_basedir限制有效。 文件(doc / html / index.html)不在允许的path中:(/ tmp /:/ usr / share / phpmyadmin /:/ etc / phpmyadmin /:/ var / lib / phpmyadmin /:/ usr /共享/ PHP / PHP-的gettext /:在/ usr /共享/ JavaScript的/:在/ usr /共享/ PHP / TCPDF /)
- 无法加载phpMyAdmin索引站点
- 在Docker容器中运行MySQL
- 在Ubuntu上使用Apache2的mysql在VPS上部署Django
- 多个主机名和多个权限?
- 错误2002(HY000):无法通过套接字'/var/run/mysqld/mysqld.sock'(111)连接到本地MySQL服务器
回溯
./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íaser aproximado。Pulse en elnúmeropara obtener la cantidad exacta。Ver [doc @ faq3-11] FAQ 3.11。',)./templates/database/structure/table_header.phtml#43:PMA_sanitize(string脉搏和精神病的脉搏,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
,然后搜索下面一行:
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/
在最后,警告消失了!