Click to See Complete Forum and Search --> : php.ini options in windows registry


knouf
02-15-2002, 04:30 AM
Hi all,
I'm trying to override php.ini configuration variables by using windows registry (HKLM\PHP\Per Directory Values...)
It works for certain variables (auto_prepend_file, include_path) but not for many others (safemode, open_basedir, docroot ....) And I'd really like to use something like open_basedir to protect the server against malicious scripts
Has anyone ever used registry configurations or recognizes this problem?
Any help is appreciated!

gardner1
02-15-2002, 02:38 PM
I might be daft, but cant you just change this line in the php.ini?

; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
;
;open_basedir =

to specify your preference?

knouf
02-16-2002, 11:05 AM
Hi,
As far as I know it's not possible to specify the open_basedir path for each virtualhost on IIS. (I know it's easy with Apache but I can't use it because some users need vbscript)
And that's what's needed: an open_basedir for each virtual server on IIS. Therefor I wanted to use the Per Directory Values in the registry...

Thanks for your help anyway!