2016-01-02 186 views
0

phpMyAdmin是给登录页面上的以下警告:为什么phpmyadmin会发出file_exists警告?

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

Backtrace ./libraries/Util.class.php#521:file_exists(string'doc/html/index.html')./libraries/Util.class .php#545:PMA_Util :: getDocuLink(string'index',string'',)./libraries/plugins/auth/AuthenticationCookie.class.php#175:PMA_Util :: showDocu(string'index')./libraries/ common.inc.php#880:AuthenticationCookie-> AUTH()./index.php#12:require_once(./库/ common.inc.php)

suggests/etc/phpmyadmin/apache.conf可能不被正确地配置。我因此检查php_admin_value

php_admin_value open_basedir的在/ usr /共享/ phpMyAdmin的/:在/ etc/phpMyAdmin的/:在/ var/lib中/ phpMyAdmin的/:在/ usr /共享/ PHP/PHP-的gettext /:在/ usr/share/javascript /:/ usr/share/php/tcpdf /:/ usr/share/doc/phpmyadmin/

这看起来不错,

+0

你的phpmyadmin的安装路径是什么? PHP试图检查/doc/html/index.html是否存在相对于您的phpmyadmin安装路径。所以该路径必须在open_basedir配置值中。 –

+0

它是'/ usr/share/phpmyadmin'。 '/ usr/share/phpmyadmin/doc/html/index.html'就在那里。既然它是上面指定的,那应该是吧? – Huey

回答

0

事实证明,我正在编辑错误的Apache配置文件。我应该编辑/etc/apache2/sites-available中的一个,而不是/etc/phpmyadmin/apache.conf

相关问题