PHP 4.0 Bug #7303 Updated: <Directory> "overflow"
| From: | staun at sunsite dot auc dot dk | Date: | Wed, 18 Oct 2000 09:56:47 +0000 |
| Subject: | PHP 4.0 Bug #7303 Updated: <Directory> "overflow" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35387@lists.php.net to get a copy of this message | ||
ID: 7303
User Update by: staun@sunsite.auc.dk
Status: Open
Bug Type: Apache related
Description: <Directory> "overflow"
Warning: open_basedir restriction in effect. File is in wrong directory. in Unknown on line 0
Warning: open_basedir restriction in effect. File is in wrong directory. in Unknown on line 0
Warning: Failed opening 'prepend.php3' for inclusion
(include_path='.:/mnt/www-docs/www-docs/SunSITE') in Unknown on line 0
Take a look at http://sunsite.dk/ Reload up to 20 times and it will
pop up.
Previous Comments:
---------------------------------------------------------------------------
[2000-10-18 04:51:21] staun@sunsite.auc.dk
At SunSITE.dk we host many different projects which some of use PHP. These seperate projects each
want to use their own prepend directives, and some we want to be more strict on than other. etc.
This results in <Directory> directives like this:
<Directory /mnt/www-docs/www-docs/php-share/phorum>
php_admin_flag safe_mode on
php_admin_value open_basedir .:/pack/apache/local/php-safe/phorum/conf
php_admin_flag sql_safe_mode off
</Directory>
etc.
The problem is that we had periodic faults where directives for f.eks.
/lgdc/ would apply themselves to our document root and other sub projects. Like the configuration
"overflowed" from subdirectory. As it is a periodic problem it is hard to reproduce, but
we stopped this behaviour by adding a <Directory> directive for /mnt/www-docs/.
It seems like the configuration which are applied to the php engine in one apache process are not
reset if there is no other directive for the new dir.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7303