php.ini Path at Runtime

From: Date: Sat, 30 Oct 2004 20:23:58 +0000
Subject: php.ini Path at Runtime
Groups: php.general 
Request: Send a blank email to php-general+get-200732@lists.php.net to get a copy of this message
Does anyone know whether there is a way to specify the path of php.ini within httpd.conf or something similar? There is an environment variabled named PHPRC that is almost useful enough, but it must exist within the environment used to start Apache (e.g., using SetEnv in httpd.conf won't work - the description of putenv() sounds much the same). I am basically looking for an elegant method of specifying the path to the php.ini to use when starting Apache, much like how I can specify the path to httpd.conf with the -f flag: /usr/local/apache/bin/httpd -f /path/to/httpd.conf Thanks. Chris

« previous php.general (#200732) next »