open_basedir leaking between virtual hosts

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I am setting open_basedir to include only the DocumentRoot and PHP
installation tree in 16 out of 18 VirtualHosts on our (test) apache
server. This is running apache 2.0.53 and PHP 5.0.3. If I force a
graceful restart, then fetch a trivial PHP page containing little more
than a single call to phpinfo(); from each host, I get the correct
value reported for open_basedir from the first few requests, then the
value seems to cycle round the value expected for the first 5
VirtualHosts - I presume that each pre-forked process that apache uses
is hanging on to its value of open_basedir even though it is next used
to serve a page from a different VirtualHost.

This appears to have been reported many times in previous versions of
PHP and has always been classified as a bogus error report, so I hope
it is simpy a configuration error on my part. Can anybody suggest where
to look?

Configuration details follow...

T.I.A. Chris Ritson.

Apache configured with:-
    ./configure --prefix=$/httpd/$ \
    --enable-layout=Apache \
    --enable-modules="so" \

PHP configured with:-
    ./configure --prefix=$/php/$ \
    --with-config-file-path=$/php \
    --with-apxs2=$/bin/apxs \
    --with-pear \
    --with-dom=/usr/lib \
    --with-ldap \
    --with-mysql=$ \
    --with-gd \
    --with-jpeg-dir \
    --with-png-dir \
    --with-zlib-dir=/usr/lib \
    --with-xpm-dir \
    --with-ttf \
    --with-freetype-dir=/usr/lib \

Apache httpd.conf typically contains the following for each
VirtualHost. The LoadModule for php is outside all VirtualHost blocks.

<VirtualHost *:80>
    DocumentRoot        /export/web/parallelism
    ErrorLog            /var/log/www/parallelism.cs-error_log
    CustomLog           /var/log/www/parallelism.cs-access_log common
    php_admin_value     open_basedir
    php_admin_flag      safe_mode off

php.ini contains

open_basedir = none

Thanks for reading the rest...

Chris Ritson (Computing Officer and School Safety Officer)

Rm 618, Claremont Bridge,       EMAIL:
School of Computing Science,    PHONE: +44 191 222 8175
University of Newcastle,        FAX  : +44 191 222 8232
Newcastle on Tyne, UK NE1 7RU. /

Site Timeline