Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7683307
  • 博文数量: 637
  • 博客积分: 10265
  • 博客等级: 上将
  • 技术积分: 6165
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-12 22:00
文章分类

全部博文(637)

文章存档

2011年(1)

2010年(1)

2009年(3)

2008年(12)

2007年(44)

2006年(156)

2005年(419)

2004年(1)

分类: LINUX

2005-07-16 21:39:55

I get an 'open_basedir restriction in effect. File is in wrong directory...'. What's wrong?

There are several things that could cause this.

a) This could be the PHP 4.2.3 BUG described below. To solve this, rewrite the Ez3 write routines or convince the provider to upgrade to php 4.3.

More info:


b) It could also mean that you have PHP safe mode on. Try switching safe mode off. Safe mode is a general PHP setting. If you are on a shared environment, you will have to talk to your ISP on this.

Even though the safe mode does not affect the open_basedir directive, safe mode can cause this type of errors.

c) open_basedir wrongly configured.

Change the configuration of open_basedir option in php.ini (see ). Find in the /etc/php.ini file the open_basedir option. If the open_basedir looks like this

/path/to/www/root/

then this is wrong. It must be the following:

Windows

;path;to;www;root;

ALL other Operating Systems

:path:to:www:root:

Sounds strange but it may work (tested with php-4.2.3). You might want to do some backup reading in the .

Change openbase_dir only for one specific vhost of Apache

You can either choose between a specific directory or no directory (value "none")


ServerName mydomain.de
DocumentRoot /home/www/web3/html
User web3
Group webuser
php_admin_value upload_tmp_dir /home/www/web3/phptmp/
php_admin_value open_basedir none
RewriteEngine On
RewriteRule !.(gif|css|jpg|png|jar)$ /index.php

阅读(1364) | 评论(1) | 转发(0) |
0

上一篇:章 22. 安全模式

下一篇:PPTPD简单安装手册

给主人留下些什么吧!~~