From: petrus at activesec dot biz
Operating system: Solaris 8
PHP version: 4.3.8
PHP Bug Type: PHP options/info functions
Bug description: open_basedir "/" not working
Description:
------------
This bug report is similar to a solved one (bugid=22220), but looks like
the bug appears again in version 4.3.8:
I just upgrade PHP from version 4.3.4 to version 4.3.8. After upgrade from
4.3.4 to 4.3.8 open_basedir "/" directive stop working (just like if I
comment it out, no effect at all)
The Web server provides hosting for several domains, all of those with its
own homedir:
<VirtualHost *:* >
ServerName www.<servername>.com
ServerAlias <servername>.com
DocumentRoot /domains/<servername>.com/web
php_admin_value open_basedir /domains/<servername>.com/web:/tmp
php_admin_flag safe_mode Off
php_admin_flag register_globals On
</VirtualHost>
where open_basedir restric PHP to the homedir. Some especial directories,
for example the webmail directory, is there only one, but it is shared by
all the virtualhosts (http://<virtualhost>/webmail/). I achieve that using
(en
httpd.conf):
Alias /webmail "/apache2/htdocs/horde/imp"
<Directory /apache2/htdocs/horde >
php_admin_flag safe_mode off
php_admin_value upload_tmp_dir /tmp
php_admin_value open_basedir "/"
</Directory>
This worked fine until the upgrade. After it, I get a message claiming
that the open_basedir directive is in use, and that
"/apache2/htdocs/horde/imp" is not in (/).
PHP.ini has no open_basedir tag, al are in apache conf. files using
"php_admin_value".
None of the configuretion file were changes durring the upgrade. After
downgrade to 4.3.4 again the problem desapeared.
4.3.8 configure line:
./configure --with-mysql --with-gd --with-apxs2=/apache2/bin/apxs
--with-ldap --sharedstatedir=/tmp --enable-memory-limit=yes
--enable-debug=no --with-zlib --with-kerberos=no
--prefix=/usr/local/chroot/www/usr/local --with-gettext --with-xml
--with-imap=../imap-2002e --without-imap-ssl
--with-openssl=/usr/local/ssl --with-jpeg-dir=/usr/local
--with-config-file-path=/apache2/conf --enable-ftp=shared
--
Edit bug report at http://bugs.php.net/?id=29856&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29856&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29856&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29856&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=29856&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29856&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29856&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29856&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29856&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29856&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29856&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29856&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29856&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29856&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29856&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29856&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29856&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29856&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29856&r=float