php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8879 iPlanet: setting doc_root etc. for virtual servers
Submitted: 2001-01-24 05:28 UTC Modified: 2003-05-18 10:38 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: sniper@php.net Assigned: thetaphi (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.3.1-dev OS: Solaris / iPlanet
Private report: No CVE-ID: None
 [2001-01-24 05:28 UTC] sniper@php.net
In php.ini you can only set one value for the various php configuration variables (doc_root, open_basedir etc.). It is possible to compile php with different paths to php.ini and set the values there, but it won't work with virtual servers. How about allowing to set those values at runtime by passing parameters to php4_execute?

--
...
<Client urlhost="www.domain.com">
NameTrans fn="document-root" root="/path/to/document/root"
Service fn="php4_execute" type="magnus-internal/x-httpd-php" doc_root="/path/to/document/root"
</Client>
...
--

Is this possible?

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-17 20:21 UTC] thetaphi@php.net
I am working on it. Will be in afew days in PHP5 and after 4.3.2 is out eventually in PHP_43 branch, too.

I will add two things:

* php4_execute: as you explained using zend_alter_ini_entry(...., PHP_INI_USER, PHP_INI_STAGE_RUNTIME);

* php4_init: the possibility to give the path to another php.ini file
 [2003-05-18 10:38 UTC] thetaphi@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

it's in PHP5 CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 08 01:01:28 2024 UTC