changes to php.ini and want to see in iis7

Windows server 2008 using iis7
I made a change to php.ini and want to see change in php.info

I do not want to restart server.
What steps do I need to take.  
Do I restart iis? How?
LVL 1
rgb192Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GaryCommented:
You don't need to restart the server, just IIS

In IIS Manager goto the site and click stop/start

http://technet.microsoft.com/en-us/library/cc732317(v=ws.10).aspx
Ray PaseurCommented:
This script, shown here in its entirety, will show you the current PHP settings.
<?php phpinfo();

Open in new window

rgb192Author Commented:
in iis7 manager

username->restart server
website->restart server

stop/ start also


failed to change the phpinfo() browser output

In the past I would just manually restart the windows server 2008 to see the change in phpinfo() browser output
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

GaryCommented:
Are you sure you are editing the correct php.ini file - when you load phpinfo it will give the path of the file being used.
If so then try restarting IIS  and not just your site.
rgb192Author Commented:
C:\php\php.ini

how to restart iis


I previously:

in iis7 manager

username->restart server
website->restart server

stop/ start also
GaryCommented:
How have you got PHP installed? FastCGI, ISAPI ? (probably ISAPI)

Try this
Command Prompt (admin) enter inetmgr.
In Application Pools select DefaultAppPool and recycle
rgb192Author Commented:
How have you got PHP installed? FastCGI, ISAPI ? (probably ISAPI)
Server API      CGI/FastCGI

I tried both application pool of website and default and clicked recycle
GaryCommented:
Weird
You may have already done this but if not select the update from the list here
http://ruslany.net/2010/03/important-update-for-iis-7-0-fastcgi-module/

Then from the command prompt run (checking the path is correct)

%windir%appcmd.exe set config -section:system.webServer/fastCgi ^
/[fullPath='C:\PHP\php-cgi.exe',arguments=''].monitorChangesTo:"C:\PHP\php.ini" ^
/commit:apphost


This should force php.ini to reload if it is changed.

More info
http://ruslany.net/2010/03/php-on-iis-monitorchangesto-setting-in-fastcgi/
rgb192Author Commented:
php-cgi.exe is located at c/php/php-cgi.exe

but I am not sure if I use which .exe is the fastcgi file


what command do I type
GaryCommented:
Missing \

%windir%\appcmd.exe set config -section:system.webServer/fastCgi ^
/[fullPath='C:\PHP\php-cgi.exe',arguments=''].monitorChangesTo:"C:\PHP\php.ini" ^
/commit:apphost
rgb192Author Commented:
same outputsame output
GaryCommented:
Do a search for appcmd.exe (maybe in system32\inetsrv) and change the cli above to reflect the path instead of %windir%

(This is why I always say if you are using PHP then use LINUX, the Windows add on is not real and just causes more problems) Windows is for .net/Linus is for php - mixing the two only creates problems.
rgb192Author Commented:
which file
which file should I use?
GaryCommented:
Try this
%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi ^
/[fullPath='C:\PHP\php-cgi.exe',arguments=''].monitorChangesTo:"C:\PHP\php.ini" ^
/commit:apphost
rgb192Author Commented:
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\j3>%windir%\system32\inetsrv\appcmd.exe set config -section:system.webS
erver/fastCgi ^
More? /[fullPath='C:\PHP\php-cgi.exe',arguments=''].monitorChangesTo:"C:\PHP\php
.ini" ^
More? /commit:apphost
ERROR ( message:Unknown attribute "[fullPath='C:\PHP\php-cgi.exe',arguments=''].
monitorChangesTo".  Replace with -? for help. )

C:\Users\j3>

Open in new window

rgb192Author Commented:
What additional information should I provide?
GaryCommented:
Check the location of php-cgi.exe, and if not in c:\php then change the path in the following and then run from the cmd

%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/fastCgi /[fullPath='C:\PHP\php-cgi.exe',arguments=''].monitorChangesTo:"C:\PHP\php.ini" /commit:apphost 

Open in new window

rgb192Author Commented:
c:\php\php-cgi.exe

is here

but I am not sure if it is used,  many files and folders
rgb192Author Commented:
Is this possible or should I just reset server because of fastcgi configuration?
rgb192Author Commented:
What other information should I provide?
Aaron TomoskyDirector of Solutions ConsultingCommented:
If you install php manager (comes with php if you use the web platform installer, you can set the php.ini that IIS watches for changes. Make and change and it automatically recycles for you without interrupting other sites.
Aaron TomoskyDirector of Solutions ConsultingCommented:
If you install php manager (comes with php if you use the web platform installer, you can set the php.ini that IIS watches for changes. Make and change and it automatically recycles for you without interrupting other sites.
rgb192Author Commented:
I am not sure if i installed php has php manager.  How to check?
Aaron TomoskyDirector of Solutions ConsultingCommented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgb192Author Commented:
http://www.iis.net/downloads/community/2010/09/php-manager-for-iis-7

I installed

and I clicked on web-platform-installer

web platform installer has a icon in server manager

there is now icon for php manager.

I am not paid to update php 5.2 and if I do, then client will be upset if there is downtime on production server
php manager
Aaron TomoskyDirector of Solutions ConsultingCommented:
thats fine, click the link "c:\php\php.ini" and change it to where your php file actually is. Probably c:\program files(x86)\php\v5.2\php.ini
rgb192Author Commented:
C:\php\php.ini

but this is a production server

what is the php.ini file that I have opened (I search and do not see php.ini)

I do not want to break the production server
Aaron TomoskyDirector of Solutions ConsultingCommented:
By default IIS looks for c:\php\php.ini
This is not usually where your php.ini is
You need to find your php installation folder, probably where I said above, and choose that as the location to watch. This setting will not affect anything except the ability for IIS to watch this file. That's why everything works when this setting is wrong.
rgb192Author Commented:
I investigated for days if I should make change
But then I realized that no change needs to be made because php manager is looking for  
c:\php\php.ini
and this is where php.ini is
I can verify by running php script of phpinfo()

I clicked on
configuration-recommendations

configuration-recommendations
rgb192Author Commented:
I will install windows updates and then break this large question into smaller questions.

One question will be how to configure php manager for iis.

Thanks for teaching me.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.