从PPA在我的Ubuntu服务器上安装phpMyAdmin之后
https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin
我收到一系列警告.提前致谢!
./libraries/Util.class.php#521 file_exists()中的警告:open_basedir限制生效.文件(doc/html/index.html)不在允许的路径中:(/ tmp /:/ usr/share/phpmyadmin /:/ etc/phpmyadmin /:/ var/lib/phpmyadmin /:/ usr /共享/ PHP/PHP-的gettext /:在/ usr /共享/ JavaScript的/:在/ usr /共享/ PHP/TCPDF /)
回溯
./libraries/Util.class.php#521:file_exists(字符串'doc/html/index.html')./ libs/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',字符串'Podríaperaproximado.Pulse enelnúmeroparaobtener la cantidad exacta.Ver [doc @ faq3-11] FAQ 3.11.',)./ template/database/structure/table_header.phtml#43:PMA_sanitize(string 'Podríaperaproximado.Pulse enelnúmeroparaobtener la cantidad exacta.Ver [doc @ faq3-11] FAQ 3.11 [/ doc].')./ library /Template.class.php #80:include(./ templates/database/structure/table_header.phtml)./ library/controllers/DatabaseStructureController.class.php#224:PMA\Template-> render(array)./ db_structure.php#54:PMA\Controllers\DatabaseStructureController-> indexAction()
razor7.. 7
算了吧,我找到了答案!
在我的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/
在最后添加,警告消失了!
算了吧,我找到了答案!
在我的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/
在最后添加,警告消失了!