tp 才引入入口文件require报错:

Warning: require(): open_basedir restriction in effect.
File(/home/wwwroot/default/txsq/tortoise/ThinkPHP/Library/Vendor/Qiniu/autoload.php) is not within the allowed path(s)
: (/home/wwwroot/default/txsq/tortoise/Public/:/tmp/:/proc/) in /home/wwwroot/default/txsq/tortoise/Public/admin.php on line 29 Warning: require(/home/wwwroot/default/txsq/tortoise/ThinkPHP/Library/Vendor/Qiniu/autoload.php)
: failed to open stream: Operation not permitted in /home/wwwroot/default/txsq/tortoise/Public/admin.php on line 29 Fatal error: require(): Failed opening required '../ThinkPHP/Library/Vendor/Qiniu/autoload.php'
(include_path='.:/usr/local/php/lib/php') in /home/wwwroot/default/txsq/tortoise/Public/admin.php on line 29 lnmp环境配置: 3处改动地方---->排查过程: 从phpinfo.php中查找php.ini-----所在位置
/usr/local/php/etc/php.ini .display_errors = On;      //由off改为on
.session.save_path = "/tmp" //开启 sesssion tmp~~~~ vim enable-php-pathinfo.conf -----find---->fastcgi.conf
vim fastcgi.conf ----> .#fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/";     //前面加个#,注释掉;~~~~~~最核心一步;~~~~可以看nginx 日志文件来排查 // 有时候多php版本环境,不可注释,可以用下面的方法
fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/home/wwwroot/default/:/tmp/:/proc/";
tibaobao.conf pathinfo ----> sudo lnmp reload //重新启动lnmp
zb@zb-computer:/home/wwwroot/default/corps$ sudo lnmp status      ----lnmp状态查看~~~
[sudo] password for zb:
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| http://lnmp.org |
+-------------------------------------------+
nginx (pid ) is running...
php-fpm is runing!
* MySQL running () sudo lnmp reload ---- 重启; 不是require不支持,是pathinfo 域名访问链接什么的。。。

lnmp环境不支持require 解决方法的更多相关文章

  1. max-height,min-height在IE下不支持的解决方法

    max-height,min-height在IE下不支持的解决方法 max-width:160px; max-height:160px; _width:expression(this.width &g ...

  2. WPF PasswordBox不支持绑定解决方法

    原文:WPF PasswordBox不支持绑定解决方法 PasswordBox的Password属性因为安全原因不支持直接绑定,可以使用依赖属性实现.直接插入代码 public class Passw ...

  3. 兼容firefox,ie,谷歌,阻止浏览器冒泡事件,Firefox不支持event解决方法

    兼容firefox,ie,谷歌,阻止浏览器冒泡事件,Firefox不支持event解决方法 // 获取事件function getEvent(){ if(window.event) {return w ...

  4. (收集)linux环境下乱码的解决方法

    **************************** 就是从数据库中取出来时,在存入linux的文件里时,在字符流时制定编码格式.代码如下: FileOutputStream fos=new Fi ...

  5. 用Rvm安装Ruby,Rails运行环境及常见错误解决方法

    一.安装Rvm 1.下载安装Rvm $ curl -L https://get.rvm.io | bash -s stable 此时可能出现错误:"gpg: 无法检查签名:找不到公钥&quo ...

  6. lnmp “.user.ini”无法删除解决方法

    LNMP无法删除或更改权限,显示:rm: cannot remove `.user.ini’: Operation not permitted 无法删除“.user.ini”文件解决方法,运行后删除即 ...

  7. VMware Workstation下安装centos提示硬盘不支持的解决方法

    最近在搞centos,遇见的一些问题,记录一下 首先是安装问题 安装过程参考http://www.cnblogs.com/seesea125/archive/2012/02/25/2368255.ht ...

  8. Firefox不支持event解决方法

    IE 中可以直接使用event 对象,而FF 中则不可以,解决方法之一如下: var theEvent = window.event || arguments.callee.caller.argume ...

  9. VB6.0对鼠标滚轮不支持的解决方法[转]已经测试work

    今天要修改一个老DLL文件,安装了vb6,用起来很不爽. VB6编辑器 和 VBA编辑器 (Office 中的VB编辑器)都不支持鼠标滚动. 但 MS 已经提供了补丁http://download.m ...

随机推荐

  1. 【递归入门】组合+判断素数:dfs(递归)

    题目描述 已知 n 个整数b1,b2,…,bn,以及一个整数 k(k<n).从 n 个整数中任选 k 个整数相加,可分别得到一系列的和. 例如当 n=4,k=3,4 个整数分别为 3,7,12, ...

  2. [精通Python自然语言处理] Ch1 - 将句子切分为单词

    实验对比了一下三种切分方式: 1,2 : nltk.word_tokenize :  分离缩略词,(“Don't” =>'Do', "n't") 表句子切分的“,” &quo ...

  3. maven把项目打包成jar包后找不到velocity模板的bug

    使用springmvc 开发时候要实现发送velcotiy模板邮件,在配置正常后,在本地测试正常后,使用maven打包成jar包后,报以下错误, Caused by: org.apache.veloc ...

  4. Web后台任务处理

    文章:.NET Core开源组件:后台任务利器之Hangfire Hangfire官网介绍:在.NET和.NET Core应用程序中执行后台处理的简便方法.无需Windows服务或单独的过程. 以持久 ...

  5. Java常用类之Math类

    Java 的常用类Math类: java.lang.Math 提供了系列的静态方法用于科学计算,其方法的参数和返回值类型一般为 double 类型. 如: 1. public static final ...

  6. 分布式系统理论-terms

    Distributed programming is the art of solving the same problem that you can solve on a single comput ...

  7. 3dContactPointAnnotationTool开发日志(二十)

      为了使工具更人性化,我又在每个status的text上绑了个可以拖拽实现值改变的脚本,但是不知道为啥rotx那个值越过+-90范围后连续修改就会产生抖动的现象,试了很多方法也没能弄好,不过实际用起 ...

  8. == 和equal的区别?-005

    1,== 和equal的区别? ==比较两个值是否相等,equal比较对对象的引用是否一致 举例: int a = 2; int b = 2; System.err.println(a == b);/ ...

  9. An Introduction to Lock-Free Programming

    Lock-free programming is a challenge, not just because of the complexity of the task itself, but bec ...

  10. JAVA的泛型与反射的联合应用

    通过泛型与反射的结合,可以编写框架来使开发更容易,这里演示的是BaseDao部分的简单使用. BaseDao部分代码: public abstract class BaseDao<T>{ ...