Re: [PHP-INSTALL] php.ini ignored.

[email protected] (Chris Hewitt)
Newsgroups php.install
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.