Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Chris Ritson
February 23, 2005, 8:39 pm
rate this thread
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
Configuration details follow...
T.I.A. Chris Ritson.
Apache configured with:-
./configure --prefix=$/httpd/$ \
PHP configured with:-
./configure --prefix=$/php/$ \
Apache httpd.conf typically contains the following for each
VirtualHost. The LoadModule for php is outside all VirtualHost blocks.
CustomLog /var/log/www/parallelism.cs-access_log common
php_admin_flag safe_mode off
open_basedir = none
Thanks for reading the rest...
Chris Ritson (Computing Officer and School Safety Officer)
Rm 618, Claremont Bridge, EMAIL: C.R.Ritson@ncl.ac.uk
School of Computing Science, PHONE: +44 191 222 8175
University of Newcastle, FAX : +44 191 222 8232
Newcastle on Tyne, UK NE1 7RU. http://www.cs.ncl.ac.uk /
- » Instantiate child object from inside parent constuctor?
- — Previous thread in » PHP Scripting Forum