- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
从 PPA 在我的 Ubuntu 服务器上安装 phpMyAdmin 之后
https://launchpad.net/~nijel/+archive/ubuntu/phpmyadmin
我收到一系列警告。提前致谢!
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/)
Backtrace
./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
,并搜索了以下行:
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/
警告消失了!
关于php - PMA 4.5.2.0 file_exists() : open_basedir restriction in effect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34212107/
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/) is not within the a
今天尝试安装 php,在尝试启动我的网站时遇到了这个问题: PHP Warning: session_start(): open_basedir restriction in effect. Fil
我在页面上对 is_dir 进行了几次调用。他们一直没有问题。 几天前,托管公司将 PHP 从 5.2 升级到 5.3。从那时起,我对 is_dir 的所有调用都导致了以下错误(消息): Warnin
我想在 php 脚本中返回 open_basedir 的值。我该怎么做?如果值为空白,它应该回显为空白.. 谢谢! 最佳答案 open_basedir是在 php.ini 中配置的设置 因此,您可以使
是否可以在失败前进行检查? if (is_in_open_basedir($path)) { } 最佳答案 您可以使用 ini_get获取 open_basedir 的当前值以检查其他值。 关于php
我在安装在 Media Temple DV 上的 Laravel 遇到问题: tempnam(): open_basedir restriction in effect. File() is not
我有一些 PHP 代码可以在设置目录中创建一个新文件: $target_path = "reports/" . basename($Report_Filename) . ".php"; if(move
我正在尝试将新插件上传到远程服务器 (websitename.com/administrator) 上的 Joomla 网站。我使用 FileZilla 指定了所有文件夹和子文件夹的权限(777 -
我正在创建一个共享主机,但不幸的是我需要允许用户使用 shell_exec。问题是,使用该命令,他们几乎可以读取我服务器中的任何文件,包括其他网站的文件!如何使 shell_exec 服从我在 vho
我正在学习如何根据最近项目的要求使用命令行。我有一个将在 cronjob 期间运行的脚本,我正在使用 Putty 从命令行点击它来测试它。 我的脚本在浏览器中运行良好,但在命令行中尝试包含文件甚至检查
我有一个使用 FastCGI (WHM/cPanel) 的 VPS。据我了解,open_basedir 必须使用每个用户的/home/目录中的 php.ini 文件进行设置(例如:在 apache 配
我最近在部署应用程序时遇到错误。它在包含路径中的路径上使用了“is_readable”,但该路径受到“open_basedir”的限制。这给了我一个致命的错误。在实际包含文件之前,我可以使用另一个函数
我遇到过这个问题,我有一台运行 apache 和 php 的服务器。我们有很多虚拟主机,但我们注意到潜在的恶意用户可以使用他的网络空间来浏览其他用户的文件(通过一个简单的 php 脚本)甚至系统文件,
我正在尝试从 plesk 中的另一个网站空间加载脚本。我在网络空间中启用了 open_basedir,并在我的脚本中插入了 include "/var/www/vhosts/example.com/h
如果我运行的是 fastCGI,在我的服务器上使用 open_basedir 将文件从一个域移动到另一个域时会遇到问题吗? 我想从以下位置移动上传的文件: /var/www/vhosts/exampl
我正在使用 mod_vhost_alias 并想为每个用户动态设置 open_basedir。有点像 php_admin_value open_basedir/var/www/vhosts/%1 但它
我很困惑为什么这两个东西相互排斥,或者看起来相互排斥,想知道是否有办法在 PHP-5.4 上同时使用这两者。尝试设置此选项时,出现以下错误: curl_setopt(): CURLOPT_FOLLOW
我正在尝试将一些站点移动到新服务器(运行 Plesk 11),但出现以下错误: Warning: file_exists() [function.file-exists]: open_basedir
我是 php 语言的初学者。在我的网络项目中,我创建了一个 filepath.config.ini 文件,它将所有文件路径存储在网站目录中。例如。CLASS1 = bin/myclass1.phpCL
我有一个 PHP 库,我想将其共享到我服务器上的多个虚拟主机,但 open_basedir 指令造成了麻烦。 我使用 ISPConfig 3 来管理网站。 PHP Warning: include()
我是一名优秀的程序员,十分优秀!