Re: PHP is looking for php.ini file in c:\windows



On 11 Jul 2006 15:26:50 -0700, "~john" <SonVoltMMA@xxxxxxxxx> wrote:

Peter van Schie wrote:
For other options see: http://nl3.php.net/manual/en/configuration.php

From the link...

"Please note that the SetEnv PHPRC "directory/to/phpini/" only works
when using PHP as CGI"

I'm not using the CGI

That user contributed note could be much better worded. It's saying that
SetEnv in httpd.conf won't have any effect on PHP as an Apache module, because
SetEnv in httpd.conf only affects subprocesses spawned by Apache - i.e. CGI.

PHPRC works fine for PHP as Apache module when you set it as an environment
variable for the Apache process itself, i.e. you set it before Apache starts
up.

--
Andy Hassall :: andy@xxxxxxxxxxx :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.



Relevant Pages

  • apache php cgi install problem
    ... php is installed in c:/php ... descriptor: don't know how to spawn child process: ... in the Apache error log. ... I have no experience in CGI - I only know it stands for Common Gateway ...
    (comp.lang.php)
  • Re: apache php cgi install problem
    ... php is installed in c:/php ... descriptor: don't know how to spawn child process: ... in the Apache error log. ... I have no experience in CGI - I only know it stands for Common Gateway ...
    (comp.lang.php)
  • Re: [: -le: argument expected
    ... is getting php5 to build the apache module. ... PHP anywhere. ... it is important to use the prefork MPM. ...
    (freebsd-stable)
  • Re: [: -le: argument expected
    ... is getting php5 to build the apache module. ... PHP anywhere. ... it is important to use the prefork MPM. ...
    (freebsd-stable)
  • Re: ftp extensions
    ... Turns out I have both Apache module and CGI versions of php on my server. ... The CGI version hadn't got ftp installed so, of course it didn't work whereas the Apache module did. ...
    (alt.php)