lnmp环境不支持require 解决方法
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 解决方法的更多相关文章
- max-height,min-height在IE下不支持的解决方法
max-height,min-height在IE下不支持的解决方法 max-width:160px; max-height:160px; _width:expression(this.width &g ...
- WPF PasswordBox不支持绑定解决方法
原文:WPF PasswordBox不支持绑定解决方法 PasswordBox的Password属性因为安全原因不支持直接绑定,可以使用依赖属性实现.直接插入代码 public class Passw ...
- 兼容firefox,ie,谷歌,阻止浏览器冒泡事件,Firefox不支持event解决方法
兼容firefox,ie,谷歌,阻止浏览器冒泡事件,Firefox不支持event解决方法 // 获取事件function getEvent(){ if(window.event) {return w ...
- (收集)linux环境下乱码的解决方法
**************************** 就是从数据库中取出来时,在存入linux的文件里时,在字符流时制定编码格式.代码如下: FileOutputStream fos=new Fi ...
- 用Rvm安装Ruby,Rails运行环境及常见错误解决方法
一.安装Rvm 1.下载安装Rvm $ curl -L https://get.rvm.io | bash -s stable 此时可能出现错误:"gpg: 无法检查签名:找不到公钥&quo ...
- lnmp “.user.ini”无法删除解决方法
LNMP无法删除或更改权限,显示:rm: cannot remove `.user.ini’: Operation not permitted 无法删除“.user.ini”文件解决方法,运行后删除即 ...
- VMware Workstation下安装centos提示硬盘不支持的解决方法
最近在搞centos,遇见的一些问题,记录一下 首先是安装问题 安装过程参考http://www.cnblogs.com/seesea125/archive/2012/02/25/2368255.ht ...
- Firefox不支持event解决方法
IE 中可以直接使用event 对象,而FF 中则不可以,解决方法之一如下: var theEvent = window.event || arguments.callee.caller.argume ...
- VB6.0对鼠标滚轮不支持的解决方法[转]已经测试work
今天要修改一个老DLL文件,安装了vb6,用起来很不爽. VB6编辑器 和 VBA编辑器 (Office 中的VB编辑器)都不支持鼠标滚动. 但 MS 已经提供了补丁http://download.m ...
随机推荐
- mvc中actionresult的返回值类型
以前一直没注意actionresult都能返回哪些类型的类型值(一直用的公司的内部工具类初始化进行返回的),今天跟大家分享一下(也是转载的别人的日志qaq). 首先我们了解一下对action的要求: ...
- 78[LeetCode] Subsets
Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solut ...
- 论文阅读之Joint cell segmentation and tracking using cell proposals
论文提出了一种联合细胞分割和跟踪方法,利用细胞segmentation proposals创建有向无环图,然后在该图中迭代地找到最短路径,为单个细胞提供分割,跟踪和事件. 3. PROPOSAL GE ...
- Html5 input placeholder 属性字体颜色修改。
这篇文章主要介绍了有关HTML5 input placeholder 颜色修改方面的知识,需要的朋友可以参考下 Chrome支持input=[type=text]占位文本属性,但下列CSS样式 ...
- OJ错误命令解释
①Presentation Error (PE) : 虽然您的程序貌似输出了正确的结果,但是这个结果的格式有点问题. 请检查程序的输出是否多了或者少了空格(' ').制表符('\t')或者换行符('\ ...
- Thunder团队第六周 - Scrum会7
Scrum会议7 小组名称:Thunder 项目名称:i阅app Scrum Master:杨梓瑞 工作照片: 参会成员: 王航:http://www.cnblogs.com/wangh013/ 李传 ...
- encode 与 decode
decode 将其它编码的字符串转换成unicode编码,例如:str1.decode("gb2312"),表示将gb2312编码的字符串转换成unicode编码 encode 将 ...
- 【Linux】- rm命令
Linux rm命令用于删除一个文件或者目录. 语法 rm [options] name... 参数: -i 删除前逐一询问确认. -f 即使原档案属性设为唯读,亦直接删除,无需逐一确认. -r 将目 ...
- cacti 添加mysql 监控 (远程服务器)
监控主机 192.168.24.69 ,以下用A表示 被监控主机 192.168.24.79,以下用B标识 记得在A服务器的cacti中导入监控mysql的templates文件 1.在B上安 ...
- C/S结构 B/S结构
[1]C/S 结构,即大家熟知的客户机和服务器结构.它是软件系统体系结构,通过它可以充分利用两端硬件环境的优势,将任务合理分配到Client端和Server端来实现,降低了系统的通讯开销.目前大多数应 ...