• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: 小 中 大 | 推荐给好友 上一篇 | 下一篇

Open_basedir restriction

发布: 2007-7-04 12:06 | 作者: admin | 来源:  网友评论 | 查看: 42次 | 进入软件测试论坛讨论

领测软件测试网 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 solvethis, rewrite the Ez3 write routines or convince the provider toupgrade to php 4.3.

More info:
http://bugs.php.net/bug.php?id=19292
http://www.faqts.com/knowledge_base/view.phtml/aid/18472

b) It could also mean that you have PHP safe mode on. Tryswitching safe mode off. Safe mode is a general PHP setting. If you areon 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 this thread). 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 php manual on configuration.

Change openbase_dir only for one specific vhost of Apache

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

<VirtualHost 217.160.187.131:80>
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
</VirtualHost>

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:[email protected] 电话:010-51297073

软件测试 | 领测国际 | ISTQB | ISTQB官网 | TMMi | TMMi认证 | 国际软件测试工程师认证 | 领测软件测试网