php pear.php 问题
小弟机器上面调了Pear.php但是访问的时候提示没有权限,这个文件/usr/local/php/lib/php/PEAR.php 是存在的,我用的是nginx +php-fpm 的环境,网上有说在php.ini 中设置
open_basedir ="./:/usr/local/php/lib/php/"
这个,还是不行
PHP Version 5.4.41
下面是报错,
2015/08/12 16:05:14 [error] 4786#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(): open_basedir restriction in effect. File(/usr/local/php/lib/php/PEAR.php) is not within the allowed path(s): (/home/wwwroot/editor.com:/tmp/:/proc/) in /home/wwwroot/editor.com/Mail.php on line 46
PHP message: PHP Warning: require_once(/usr/local/php/lib/php/PEAR.php): failed to open stream: Operation not permitted in /home/wwwroot/editor.com/Mail.php on line 46
PHP message: PHP Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/editor.com/Mail.php on line 46" while reading response header from upstream, client: 1
open_basedir ="./:/usr/local/php/lib/php/"
这个,还是不行
PHP Version 5.4.41
下面是报错,
2015/08/12 16:05:14 [error] 4786#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(): open_basedir restriction in effect. File(/usr/local/php/lib/php/PEAR.php) is not within the allowed path(s): (/home/wwwroot/editor.com:/tmp/:/proc/) in /home/wwwroot/editor.com/Mail.php on line 46
PHP message: PHP Warning: require_once(/usr/local/php/lib/php/PEAR.php): failed to open stream: Operation not permitted in /home/wwwroot/editor.com/Mail.php on line 46
PHP message: PHP Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/editor.com/Mail.php on line 46" while reading response header from upstream, client: 1
...全文
相关推荐
PHP pear安装配置教程
主要为大家详细介绍了PHP pear安装配置教程,告诉大家如何获取并安装PEAR,感兴趣的朋友可以参考一下
Windows下的PHP安装pear教程
主要介绍了Windows下的PHP安装pear教程,本文在CMD中使用PHP命令安装pear,不同网上的其他教程,需要的朋友可以参考下
Windows 下的 PHP-PEAR 安装方法
发现自己的 Windows 下的 PHP 环境没有安装 pear ,于是从网上找到了这个安装文件:go-pear.php
PEAR.php源代码
NULL 博文链接:https://duchengjiu.iteye.com/blog/1723172
php Document |Pear 安装、使用教程,包含go-pear.php
php Document |Pear 安装、使用教程,包含go-pear.php


基础编程
