For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > February 2007 > Re: [PHP-WIN] php installed on IIS: changes to php.ini not taking affect









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-WIN] php installed on IIS: changes to php.ini not taking affect
tg-php@gryffyndevelopment.com

2007-01-11, 7:01 pm

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 th
at'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@gryffyndevelopment.com wrote:[color=darkred]
> 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@gryffyndevelopment.com wrote:
ple change that will show up on phpinfo(). You should find it eventually.[color=darkred]


________________________________________
___________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
trystano@aol.com

2007-01-11, 7:01 pm

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@gryffyndevelopment.com
To: php-windows@lists.php.net
CC: kevinruiz@bigandbrown.com
Sent: Thu, 11 Jan 2007 3.45PM
Subject: Re: [PHP-WIN] 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@gryffyndevelopment.com 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.[color=darkred]
>
>
> -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@gryffyndevelopment.com wrote:
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.[color=darkred]
line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment
variable in THTTPD)[color=darkred]
registry key mentioned below.[color=darkred]
(otherwise in Windows)[color=darkred]
--with-config-file-path compile time option"[color=darkred]


________________________________________
___________________
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



Teptapbur76

2007-01-28, 9:31 am

My girlfriend's private videos :)
http://jayna-blog.info/
Shaneyney

2007-02-03, 5:10 pm

hot 3x video
http://jemurl.com/jwv7n
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com