open_basedir restriction in effect. File() is not within the allowed path(s)
2016-01-15 16:42
806 查看
目前发现eaccelerator安装之后如果php.ini中设置open_basedir将导致open_basedir的一些报错(open_basedir restriction in effect. File() is not within the allowed path(s)), 在网上查找说这是eaccelerator的一个BUG所导致,解决方法有以下几种:
1.在解压eaccelerator后修改eaccelerator-0.9.6/eaccelerator.c文件1156行的参数,如下:
if (PG(open_basedir) && php_check_open_basedir(realname TSRMLS_CC)) {
修改成:
if (PG(open_basedir) && php_check_open_basedir(file_handle->filename TSRMLS_CC)) {
修改完成后再安装。
2.在编译eAccelerator的时候增加 "--without-eaccelerator-use-inode" 参数
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
以上两种方法测试通过。作为记录。
1.在解压eaccelerator后修改eaccelerator-0.9.6/eaccelerator.c文件1156行的参数,如下:
if (PG(open_basedir) && php_check_open_basedir(realname TSRMLS_CC)) {
修改成:
if (PG(open_basedir) && php_check_open_basedir(file_handle->filename TSRMLS_CC)) {
修改完成后再安装。
2.在编译eAccelerator的时候增加 "--without-eaccelerator-use-inode" 参数
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
以上两种方法测试通过。作为记录。
相关文章推荐
- js判断input是否为空
- javascript 字典类型的使用
- js实现fieldset折叠
- Jquery map用法
- Jquery each 用法
- Jquery 筛选
- css中width和height默认值
- 《JavaScript启示录》学习笔记——第4章 Function()
- js之放大镜
- JQuery经典例子:可拉伸菜单
- Jquery的一些简单使用记录
- 利用Jquery+JS生成Json串,动态创建添加项
- SDUT Fermat’s Chirstmas Theorem(素数筛)
- 一个资深iOS开发者对于React Native的看法
- Node.js如何处理健壮性
- eval() JSON.parse() Json.stringfy()
- html超链接打开的窗口大小
- jQuery迭代器
- js 获取人员年龄(x岁x月x天)
- 慢牛系列四:好玩的React Native