#19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory

From: Date: Mon, 09 Sep 2002 21:56:03 +0000
Subject: #19292 [Com]: random error: open_basedir restriction in effect. File is in wrong directory
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18860@lists.php.net to get a copy of this message
ID: 19292 Comment by: x4com@web.de Reported By: tnowak@triger.com.pl Status: Open Bug Type: Apache related Operating System: linux PHP Version: 4.2.3 New Comment: Hi, I have also the problem. Here is my Config: './configure' '--with-apache=../apache_1.3.26' '--with-mysql=/usr/local/mysql' '--with-mcrypt=/usr/local' '--with-png-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-curl=/usr/local' '--with-zlib=/usr/local' '--enable-ftp' '--with-hyperwave' '--with-freetype-dir=/usr/local' '--with-gd=/usr/local' '--with-swf=/usr/local' '--with-ttf=/usr/local' '--with-imap=/usr/local' '--enable-gd-native-ttf' '--with-mhash=/usr/local' '--enable-yp' '--enable-bcmath' '--with-tiff-dir=/usr/local' '--with-t1lib=/usr/local' '--enable-sysvshm=yes' '--enable-sysvsem=yes' '--enable-calendar' '--enable-mbregex' '--enable-mbstring' '--enable-wddx' '--enable-exif' '--enable-memory-limit' '--enable-freetype-4bit-antialias-hack' '--with-bz2=/usr/local' '--with-gettext=/usr/local' '--with-xpm-dir=/usr/X11R6' '--with-openssl=/usr/local/openssl' '--disable-debug' '--with-dom=/usr/local' '--enable-gd-imgstrttf' '--with-pdflib' '--with-xmlrpc' '--enable-xslt' '--with-xslt-sablot' '--enable-magic-quotes' '--with-zip=/usr/local' '--with-zlib=/usr/local' '--with-zlib-dir=/usr/local' '--enable-sablot-errors-descriptive' '--with-kerberos' '--with-iconv=/usr/local' '--with-imap-ssl=/usr/local/openssl' '--enable-safe-mode' '--disable-pear' Redhat 7.2 Linux 2.4.17 Apache 1.3.26 PHP 4.2.3 Please fix this... Previous Comments: ------------------------------------------------------------------------ [2002-09-09 06:31:01] mb@imp.ch I can confirm this bug on FreeBSD. We upgraded yesterday to 4.2.3 and had in 2-3 virtual server configs the opendir restriction. Suddently PHP begins to complain about open_basedir related errors in virtual server configs where no openbasedir is set. Looks like <VirtualHost> php_admin_value open_basedir "some_path" </VirtualHost> has a global effect ! Workaround is to set OpenBasedir in every configuration :-(( Of course this breaks a lot of things like external include dirs etc ... ------------------------------------------------------------------------ [2002-09-08 10:54:11] tnowak@triger.com.pl After upgrade from 4.2.2 to 4.2.3 I have random error "open_basedir restriction in effect. File is in wrong directory" at all apache virtual servers (with open_basedir option and without). Linux 2.2.21 './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--enable-EAPI' '--enable-track-vars' '--with-mysql=/usr/local/mysql' '--with-jpeg-dir' '--with-t1lib' '--enable-calendar' '--enable-sysvsem' '--enable-sysvshm' '--enable-trans-sid' '--with-zlib' '--enable-ftp' '--enable-yp' '--enable-memory-limit' '--with-gd' '--with-exec-dir' '--enable-sockets' '--enable-safe-mode' '--with-exec-dir=/usr/local/php/bin' '--with-pdflib=/usr/pdflib' '--with-imap' '--with-png-dir' '--with-gettext' '--with-openssl=/usr/openssl/' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19292&edit=1

« previous php.bugs (#18860) next »