#27566 [NEW]: open_basedir errors but isn't active on vhost

From: Date: Thu, 11 Mar 2004 13:56:45 +0000
Subject: #27566 [NEW]: open_basedir errors but isn't active on vhost
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56295@lists.php.net to get a copy of this message
From: foo at bserved dot nl Operating system: RH Linux 7.3 PHP version: 4.3.4 PHP Bug Type: Unknown/Other Function Bug description: open_basedir errors but isn't active on vhost Description: ------------ Webserver version: Apache/2.0.48 (Unix) mod_ssl/2.0.48 OpenSSL/0.9.6b PHP/4.3.4 Not sure whether this _IS_ a php bug, but I guess it is.. Sometimes I get an error while opening a website on our server, when refreshing however, the error is gone. We do have open_basedir set, but only on 1 vhost as you can see below. Reproduce code: --------------- The vhost used: <VirtualHost *> RewriteEngine on RewriteOptions inherit DocumentRoot /usr/local/apache/htdocs ServerName selena.nl3gta.nl ErrorLog /var/log/httpd/selena.nl3gta.nl-error_log CustomLog /var/log/httpd/selena.nl3gta.nl-access_log common </VirtualHost> The vhost with the open_basedir: <VirtualHost 62.221.212.133:80> ServerAdmin root DocumentRoot /home/sites/xxxx ServerName xxxx php_admin_value open_basedir /home/sites/xxxx php_admin_value safe_mode On </VirtualHost> Expected result: ---------------- No error, i guess. Actual result: -------------- Warning: Unknown(): open_basedir restriction in effect. File(/usr/local/apache/htdocs/-/index.php) is not within the allowed path(s): (/home/sites/xxxx) in Unknown on line 0 Warning: Unknown(/usr/local/apache/htdocs/-/index.php): failed to open stream: Operation not permitted in Unknown on line 0 Warning: (null)(): Failed opening '/usr/local/apache/htdocs/-/index.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line -- Edit bug report at http://bugs.php.net/?id=27566&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27566&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27566&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27566&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27566&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27566&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27566&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27566&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27566&r=support Expected behavior: http://bugs.php.net/fix.php?id=27566&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27566&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27566&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27566&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27566&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27566&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27566&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27566&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27566&r=float

« previous php.bugs (#56295) next »