Re: php4: less config variables

From: Date: Fri, 08 Sep 2000 06:30:11 +0000
Subject: Re: php4: less config variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15836@lists.php.net to get a copy of this message
On Fri, 08 Sep 2000, Estelle Martin wrote: > Hi all, > I am very frustrated: I have been running php3 for 4 months and I was > used to some configuration options that were secure for several > users to put their php pages on their site. In particular, for > each virtual host, I put php3_open_basedir in a directory tag in > httpd.conf of Apache, so that the user cannot change directory out of > his own part of the server. Yesterday I installed PHP4, and here is > what I read: > " > With PHP 3.0, there are Apache directives that correspond to each > configuration setting in the php3.ini name, except the name is prefixed > by "php3_". > > With PHP 4.0, there are just a few Apache directives that allow you to > change the PHP configuration settings. > " > And in these "few Apache directives", open_basedir is not ... > This means that I have to put open_basedir in the php.ini file and I > cannot put a different value for each directory ? > Did somebody have the same desillusion and maybe an alternate solution ? > Thank you, > Estelle > I think you have misunderstood the documentation. It says: php_value name value Sets the value of the specified variable. Meaning the name is the configuration item (in your case open_basedir) and value is the value to be assigned, here the name of the directory. Therefore, you should try php_value open_basedir "/path/to/basedir" -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#15836) next »