Re: php installed on IIS: changes to php.ini not taking affect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 There is a small free app you can download called ExamDiff that allows you to compare two files. This may be off use to you?
 
 Tryst
    
 -----Original Message-----
 From: tg-php@xxxxxxxxxxxxxxxxxxxxxx
 To: php-windows@xxxxxxxxxxxxx
 CC: kevinruiz@xxxxxxxxxxxxxxx
 Sent: Thu, 11 Jan 2007 3.45PM
 Subject: Re:  php installed on IIS: changes to php.ini not taking affect
 
  Try checking out phpinfo() when it works and compare that to what's in your 
php.ini and look for the differences.  Maybe some option or extension or 
something you're trying to run is exploding.  Maybe print out the successful 
phpinfo() and your php.ini that's causing the trouble and go over both with a 
fine toothed comb.

-TG

= = = Original message = = =

Thanks for the suggestion...I tried that...i didn't make a difference.

Here's another thing I noticed. PHP seems to be using the default 
settings. When I drop a php.ini file in C:\Windows (where php is looking 
for my ini file) php fails execute. If I remove the ini file...the code 
executes fine.

tg-php@xxxxxxxxxxxxxxxxxxxxxx wrote:
> Could be a permissions issue with reading the new php.ini file you created.
> 
> On this page, it tells you how to figure out what user your IIS is executing 
as:
> http://www.php.net/manual/en/install.windows.iis.php
> 
> "
> 1. In IIS Admin, go to Application Pools
> 2. Right click on the pool your site is running under and click properties. 
> 3. Go to the Identity tab and see what user is selected. 
> 4. Give that user permissions to your php files/directory.
> "
> 
> If all else fails and you want to see if it's a permissions thing, set 
permissions to "Everyone - Full Control" on your php.ini file.  Bad security, 
but it should tell you if it's a permissions issue or not.
> 
> 
> -TG
> 
> = = = Original message = = =
> 
> okay...turns out there was something strange going on with my ini file. 
> I copied its contents into a new file, saved that as "php.ini"...now 
> whenever I drop that in either C:\Windows or C:\PHP php will not 
> execute. If I move the file out of either of those two directories, it 
> executes fine.
> 
> Does this make any sense?
> 
> 
> tg-php@xxxxxxxxxxxxxxxxxxxxxx wrote:
>> I had a similar issue a couple years ago when I was running Apache/PHP on a 
Windows box at a previous job.  The information below helped.  Check all the 
locations (regardless of what PHP is reporting it's using for php.ini's path).  
Try making some simple change that will show up on phpinfo().  You should find 
it eventually.
>>
>> Good luck!
>>
>> -TG
>>
>> http://www.php.net/manual/en/install.windows.php
>>
>> "php.ini is searched in these locations (in order):
>>
>> * SAPI module specific location (PHPIniDir directive in Apache 2, -c command 
line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment 
variable in THTTPD)
>> * The PHPRC environment variable. Before PHP 5.2.0 this was checked after the 
registry key mentioned below.
>> * HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
>> * Current working directory (for CLI)
>> * The web server's directory (for SAPI modules), or directory of PHP 
(otherwise in Windows)
>> * Windows directory (C:\windows or C:\winnt) (for Windows), or 
--with-config-file-path compile time option"
>>
>> = = = Original message = = =
>>
>> I have php 5.2 up and running on IIS 5.1.
>>
>> phpinfo tells me php is looking for my ini file in C:\Windows...I place 
>> the file there, edit it, restart the server but I don't see the changes 
>> I've made.
>>
>> I've been dealing with this for a day and can't seem to find any 
>> information as to what's causing this problem.
>>
>> I've tried adding C:\PHP to my system path where C:\PHP is where php 
>> lives. I also have PHPRC pointing ot C:\PHP...not sure if either of 
>> those would have anything to do with my problem.
>>
>>
>> Does anyone have any ideas?


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

   

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux