【发布时间】:2013-02-05 16:40:51
【问题描述】:
我有一个带有 centOS LAMP 堆栈的 vps,以及多个域/IP。很久以前,我有一个比较熟悉 SSH 的人在 vps 上安装 pear,我相信他为特定的用户/域配置了它,该用户/域不再存在,现在 pear 正在抛出错误。
不再存在的旧用户/域是“ljsspin”,但是当我查看我的 php.ini 时,包含路径是:
include_path = ".:/usr/share/pear/:/usr/share/php:/var/www/ljsspin/data/pear/:"
我可以在 ssh 中执行 pear 命令,但我假设包含路径的最后一部分不再存在是错误的原因。
所以我的问题是如何将必要的 /data/pear 文件安装到新目录中?我尝试升级 pear,但也产生了错误(无法解压缩结构文件)。
感谢您的指导。
我收到的确切错误消息:
Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/share/pear/Mail.php) is not within the allowed path(s): (/var/www/steve/data:.) in /var/www/steve/data/www/newdomain.com/admin/dashboard/includes/pdf.php on line 3
Warning: include(/usr/share/pear/Mail.php) [function.include]: failed to open stream: Operation not permitted in /var/www/steve/data/www/newdomain.com/admin/dashboard/includes/pdf.php on line 3
Warning: include() [function.include]: Failed opening 'Mail.php' for inclusion (include_path='.:/usr/share/pear/:/usr/share/php:/var/www/ljsspin/data/pear/:') in /var/www/steve/data/www/newdomain.com/admin/dashboard/includes/pdf.php on line 3
【问题讨论】:
-
发布确切的错误消息(使用剪贴板复制和粘贴)并解释如何触发它总是有帮助的(您是在谈论在控制台中运行
pear还是在 PHP 中使用 PEAR 包代码?)。 -
刚刚添加了确切的错误。顺便说一句,我确实验证了 /usr/share/pear/Mail.php 位于正确的位置。