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. Mount qcow2 image

    1.Mount a qcow2 image qemu-nbd - QEMU Disk Network Block Device Server: Export QEMU disk image using ...

  2. 函数重载(overload)和函数重写(override)

    1. 前言: 在C++中有两个非常容易混淆的概念,分别是函数重载(overload)和函数重写(overwirte).虽然只相差一个字,但是它们两者之间的差别还是非常巨大的. 而通过深入了解这两个概念 ...

  3. 最短路径算法(II)

    什么??你问我为什么不在一篇文章写完所有方法?? Hmm…其实我是想的,但是博皮的加载速度再带上文章超长图片超多的话… 可能这辈子都打不开了吧… 上接https://www.cnblogs.com/U ...

  4. Beta版本软件使用说明

    北京航空航天大学计算机学院 远航1617 小组 产品版本: Beta版本 产品名称:Crawling   is going on 文档作者:杨帆 文档日期:2013/12/24 1.   引言 1.1 ...

  5. c# dll问题

    问题描述: dll完全拷贝另一个程序,可是报缺少引用程序集之类的错误. 解决办法: 有可能是.net版本造成的错误.一般常见在3.5升到4之后,存在很多容差.

  6. 一个demo让你彻底理解Android中触摸事件的分发

    注:本文涉及的demo的地址:https://github.com/absfree/TouchDispatch 1. 触摸动作及事件序列 (1)触摸事件的动作 触摸动作一共有三种:ACTION_DOW ...

  7. (五)final修饰符

    final修饰变量 final修饰符一般用于基本数据类型(int,float)或者不可变对象(String).这时候可以看作常量变量. 但是当final作用于可变数据类型时(数组,一般对象),仅仅表示 ...

  8. iOS如何做出炫酷的翻页效果

    详情链接http://www.jianshu.com/p/b6dc2595cc3e https://github.com/schneiderandre/popping

  9. 3ds Max学习日记(九)

      添加了几根线条,又跟着教程细扣了一下面部细节,并把鼻子做的更细致了一些,如图:   又做了好久,按着教程抠出了眼睛和嘴,感觉自己做的模型就跟鬼似的...   做了下头发,看了下视频最后,并没教如何 ...

  10. 【week5】psp

    本周psp psp饼图: 随笔字数折线图: 代码行折线图: