#35684 [Opn->Bgs]: PHPIniDir can't be specified twice for different virtual hosts

From: Date: Thu, 15 Dec 2005 15:29:17 +0000
Subject: #35684 [Opn->Bgs]: PHPIniDir can't be specified twice for different virtual hosts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90473@lists.php.net to get a copy of this message
ID: 35684 Updated by: tony2001@php.net Reported By: techtonik@php.net -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: W2K PHP Version: 5.1.1 New Comment: Apparently it is impossible just because an apache child may serve requests to different virtual hosts, but it loads PHP module (and reads php.ini) only once - during the initial startup. Please ask such questions in internals. Previous Comments: ------------------------------------------------------------------------ [2005-12-15 16:20:49] techtonik@php.net Description: ------------ I'd like to specify distinct php.ini for two VirtualHosts. The problem is what PHPIniDir cannot be specified multiple times in httpd.conf Is it possible to correct PHPIniDir behavior? If not - then why? I think other hosting companies are interested in solution too. Additionally I'd like to specify exact php.ini file in this (or perhaps PHPIniPath) directive. Useful when you have multiple users and would like to keep their php.inis in one place. Reproduce code: --------------- E:\WebServices\Apache2\bin>Apache.exe Actual result: -------------- Syntax error on line 977 of E:/WebServices/Apache2/conf/httpd.conf: Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35684&edit=1

« previous php.bugs (#90473) next »