open_basedir restriction in effect. File() is not within the allowed path(s)
来源:互联网 发布:c语言switch用法 编辑:程序博客网 时间:2024/05/15 10:03
目前发现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
以上两种方法测试通过。作为记录。
0 0
- open_basedir restriction in effect. File() is not within the allowed path(s)
- phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
- Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(F:/Windows/TEMP/) is not within the
- linux 下搭建Nginx+php报错open_basedir restriction in effect. File(/var/www/html/index.php) is not within
- php 运行时 is not writable、open_basedir restriction in effect
- require(): open_basedir restriction in effect. File
- 解决cakePHP中的. session_start()[function.session-start];open_basedir restnction in effect.File(c:/windows/temp/)is not within the a
- is not within the allowed path
- open_basedir restriction in effect
- Warning: file_exists(): open_basedir restriction in effect. File 错误的解决办法
- Warning: require(): open_basedir restriction in effect. File(/home/framework/laravel/
- open_basedir restriction in effect错误的解决办法
- linux 下出现:open_basedir restriction in effect
- Warning: require(): open_basedir restriction in effect.
- Warning: require(): open_basedir restriction in effect.
- open_basedir restriction in effect错误解决方法
- open_basedir restriction in effect的错误及其解决办法
- PHPExcel中open_basedir restriction in effect的解决方法
- ANDROID NFC笔记86
- 只读存储器和闪速存储器
- Linux下环境变量的设定以及配置文件的修改
- 敏捷开发在项目中的应用心得
- Spanned.SPAN_EXCLUSIVE_EXCLUSIVE的含义
- open_basedir restriction in effect. File() is not within the allowed path(s)
- T-SQL查询进阶--理解SQL Server中索引的概念,原理以及其他
- html 定位
- 最简单的WebRTC示例
- hiho 1039 : 字符消除
- JAVA变量及内存分配
- ubuntu建立多级目录命令
- Ubuntu下安装TURN Server (rfc5766-turn-server)
- android手势操作滑动效果触摸屏事件处理