Re: Re: Apache 1.3.x PHP module and php.ini precedence
| From: | Franco Pozzer | Date: | Wed, 09 Oct 2002 08:51:39 +0000 |
| Subject: | Re: Re: Apache 1.3.x PHP module and php.ini precedence | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16269@lists.php.net to get a copy of this message | ||
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 <20021002022853.73392.qmail@pb1.pair.com>, letterj@phpgeek.com
> 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