If Apache work as Apache module php.ini *MUST BE* in system root env like
C:\winnt\php.ini

If Apache work as CGI php.ini *MUST BE* in the path where php it is
installed.

Like this Apache directives:

#PHP 4.2.1 come CGI
ScriptAlias /php/ "D:/Php/php-4.2.1-Win32/"
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe

my php.ini it is on the D::/Php/php-4.2.1-Win32/

#PHP 4.2.1 come Apache Module
#LoadModule php4_module "D:/Php/php-4.2.1-Win32/sapi/php4apache.dll"
#AddType application/x-httpd-php .php

my php.ini it is in the D:\winnt\system32\

Ciao Franco



Claudio Bustos wrote:

> In c:\windows or c:\winnt is the first place where to look ;)
>
> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> says...
> > I'm trying to figure out the rules that PHP uses when looking for a
> > php.ini file. In what exact order does it check what specific places.
> > I've got numerous php.ini files sitting outside my "PHP" setup and when
> > Apache is launched it's picking up one that doesn't seem to be in the
> > "path" that I would expect PHP to look.
> >
>
> --
> Claudio Bustos
> Psicólogo
> Chile
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to