On Wed, 2005-01-05 at 19:19, CRI74 - Fabien Combernous wrote: > Hello, > > In my apache configuration file i have this line : > SetEnv PHPRC /path/i_would_like/to_use/ > > In directory /path/i_would_like/to_use/, i put a php.ini file. > Usualy PHPRC variable permit to modify path where php search php.ini > file, different of which one given at compil time. But i don't know why > php is near to ignore SetEnv. > > Some complements are necessary. If i use a phpinfo() function, i can > read PHPRC with value "/path/i_would_like/to_use/". But, value of > "Configuration File (php.ini) Path" say that php use the path specified > at compil time. So, /path/i_would_like/to_use/php.ini is ingored. > > I'm confused and lost. Can someone bring me some help ?
The manual at http://www.php.net/manual/en/configuration.php#configuration.file implies that PHPRC, and starting PHP with the -c switch, is only for the CLI or CGI versions. I am guessing but I suspect you have PHP as an Apache DSO. You would need to recompile PHP to change the location of php.ini. I would ask yourself if you really _need_ php.ini somewhere other than in /etc. HTH Chris