Avatar of rgb192
rgb192
Flag for United States of America asked on

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?
PHPMicrosoft IIS Web ServerWindows Server 2008

Avatar of undefined
Last Comment
rgb192

8/22/2022 - Mon
Gary

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
SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
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
Gary

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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
rgb192

ASKER
C:\php\php.ini

how to restart iis


I previously:

in iis7 manager

username->restart server
website->restart server

stop/ start also
SOLUTION
Gary

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
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
SOLUTION
Gary

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Gary

Missing \

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

ASKER
same outputsame output
SOLUTION
Gary

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
which file
which file should I use?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
rgb192

ASKER
Gary

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
rgb192

ASKER
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

⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
What additional information should I provide?
Gary

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

rgb192

ASKER
c:\php\php-cgi.exe

is here

but I am not sure if it is used,  many files and folders
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
rgb192

ASKER
Is this possible or should I just reset server because of fastcgi configuration?
rgb192

ASKER
What other information should I provide?
SOLUTION
Aaron Tomosky

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Aaron Tomosky

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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
I am not sure if i installed php has php manager.  How to check?
ASKER CERTIFIED SOLUTION
Aaron Tomosky

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
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
SOLUTION
Aaron Tomosky

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rgb192

ASKER
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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Aaron Tomosky

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.
rgb192

ASKER
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
rgb192

ASKER
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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.