|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-30 19:08 UTC] petrus at activesec dot biz
[2004-08-31 08:18 UTC] derick@php.net
[2004-09-14 13:45 UTC] vrana@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 05:00:01 2025 UTC |
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