We are running Windows 2008 Server 64 bit R2, SQL Server 2008 Express, with Clasic ASP happily. We got ASP.Net running too and wanted to get PHP going before depoyment. We have used the WPI deployment to install: PHP versions 5.2.17, 5.2.14, and now 5.3.9,
and PHP Manager. After installation we check the php manager and we are unable to get any info from the diagnostic phpinfo(), instead we get: "Navigation to the webpage was canceled" - a time out?? When index.php is hit by a browser from a client machine,
the following appears:
Many thanks for the reply and time saving information Martin. We are in debt :)
What concerns us, would be when we have code in PHP and we update the PHP version (i.e. had the server been in production), then innocently attemplting to update a security hole in php 5.?.? and finding ourselves with a non-functioning installation of PHP
(until we unistall and reinstall PHP!!!). Sigh..
What would be the best source of information for carrying out manual or preferably automatic unistal-ation of PHP then?
Many thanks. Thus we need to unistall all versions and install 3.5.9. I will go the Windows Installer way, BUT what is the best way to unistall then PHP versions: 5.2.17, 5.2.14, and 5.3.9 (or if there is an authoriative page that would be ok too)?
Many thanks for walking through this one with us. 5.2.14 was installed using windows installer, so that is out of the way easily (I guess that's why your recommendation is to use the Windows Installer). Now
http://forums.iis.net/t/1185911.aspx reads in a step by step fashion:
1. Back-up the php.ini
### which defaults to "C:\Program Files (x86)\PHP\php.ini"
2. Stop the IIS Web Server remove the settings for PHP
3. Then manually remove or delete remaing files extensions php.ini files including
check the C:\Windows and C:\Windows\System folders for the ini files.
### no php.ini files there
for the new install and the remains of manual install.
4. Then check the removal of the PHP using the Web Platform Tool. You should restart the Windows System.
### I hit the wall here. The Web Platform Installer (7.1.1070.01) does not provide for uninstalling any PHP version. It does list 3.5.9 but since it is installed the option is marked as installed and dimmed. Am I at the right place?
5. After you have restarted install the PHP with the Web Platform Tool install the PHP SQL Driver Extensions.
OK, those are also our server php file handling mappings (I think the WPI created them and labelled them as PHP52_via_FastCGI and PHP53_via_FastCGI - they were left as is). In the website settings in the "Set Up" of the PHP manager, file and folder handlings
are inherited.
mlp_1966
9 Posts
Problems with PHP and IIS 7.5
Jan 25, 2012 03:11 AM|LINK
Dear all
We are running Windows 2008 Server 64 bit R2, SQL Server 2008 Express, with Clasic ASP happily. We got ASP.Net running too and wanted to get PHP going before depoyment. We have used the WPI deployment to install: PHP versions 5.2.17, 5.2.14, and now 5.3.9, and PHP Manager. After installation we check the php manager and we are unable to get any info from the diagnostic phpinfo(), instead we get: "Navigation to the webpage was canceled" - a time out?? When index.php is hit by a browser from a client machine, the following appears:
Any help would be really appreciated...
HCamper
8048 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 03:21 AM|LINK
Hi,
Yes that's starting to be an issue:
Windows 2008 Server R2 and X64-Bit using PHP versions 5.2.17, 5.2.14 and now 5.3.9 and PHP Manager.
You have to remove and clean up the previous installs. Then use the Web Platform Tool.
Yes try this http://forums.iis.net/t/1186168.aspx PHP update to 5.3.9.
Look at the http://forums.iis.net/t/1185911.aspx "Problems after installing PHP 5.3.8 User Thread"
HTH
Martin
Community Member Award 2011
mlp_1966
9 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 06:28 AM|LINK
Many thanks for the reply and time saving information Martin. We are in debt :)
What concerns us, would be when we have code in PHP and we update the PHP version (i.e. had the server been in production), then innocently attemplting to update a security hole in php 5.?.? and finding ourselves with a non-functioning installation of PHP (until we unistall and reinstall PHP!!!). Sigh..
What would be the best source of information for carrying out manual or preferably automatic unistal-ation of PHP then?
HCamper
8048 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 06:53 AM|LINK
Hi,
Thanks for the Kudos :)
In a Production server PHP the latest updated version is the best way to keep secure.
For the PHP updating and install information hope this helps.
This can be complex for the choices "Menu" selections you want and need and the version of Windows.
Some History and changes http://forums.iis.net/t/1181076.aspx "PHP Version 5.3.8 not available" and some of the changes.
A) The PHP install can be from the .zip archive at the PHP for windows download to do an install. Works lots of time.
B) The PHP install can be from a zip archive using at files at the Source Forge site using the Web Platform Tool. Works automatic.
C) The PHP install can be from a Windows Installer at the PHP for windows download. Works using the UI or msi cmds to deploy.
D) The PHP Manager for Vista and above helps with the configuration settings & testing.
Youe can get the PHP Manager using the Web Platform Tool latest version.
http://phpmanager.codeplex.com/wikipage?title=Managing%20PHP%20installations%20with%20PHP%20Manager%20command%20line
The PHP Manager Project is at Code Plex you can get the installers for latest version.
Note: Many of the installs require reading and accepting the Eula and terms.
Personal choice: Is the Windows Installer versions for deploying.
HTH
Martin
Community Member Award 2011
mlp_1966
9 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 09:31 AM|LINK
Hi Martin
Many thanks. Thus we need to unistall all versions and install 3.5.9. I will go the Windows Installer way, BUT what is the best way to unistall then PHP versions: 5.2.17, 5.2.14, and 5.3.9 (or if there is an authoriative page that would be ok too)?
HCamper
8048 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 09:38 AM|LINK
Hi,
What is the best way to unistall then PHP past versions 5.3.XX authoriative page lets make one
http://forums.iis.net/t/1185911.aspx Problems after installing via the Web Platform.
Problems after installing PHP 5.3.8 via the Web Platform Installer
I hope Dizz does not mind :D.
Martin
Community Member Award 2011
mlp_1966
9 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 09:55 AM|LINK
Hi Martin
Many thanks for walking through this one with us. 5.2.14 was installed using windows installer, so that is out of the way easily (I guess that's why your recommendation is to use the Windows Installer). Now http://forums.iis.net/t/1185911.aspx reads in a step by step fashion:
1. Back-up the php.ini
### which defaults to "C:\Program Files (x86)\PHP\php.ini"
2. Stop the IIS Web Server remove the settings for PHP
### thus remove "C:\Program Files (x86)\PHP\php.ini"
3. Then manually remove or delete remaing files extensions php.ini files includingcheck the C:\Windows and C:\Windows\System folders for the ini files.
### no php.ini files there
for the new install and the remains of manual install.
4. Then check the removal of the PHP using the Web Platform Tool. You should restart the Windows System.
### I hit the wall here. The Web Platform Installer (7.1.1070.01) does not provide for uninstalling any PHP version. It does list 3.5.9 but since it is installed the option is marked as installed and dimmed. Am I at the right place?
5. After you have restarted install the PHP with the Web Platform Tool install the PHP SQL Driver Extensions.
6. Also install PHP Manager http://learn.iis.net/page.aspx/944/using-php-manager-for-iis-to-setup-and-configure-php/
HCamper
8048 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 10:09 AM|LINK
Hi,
The Snag might in 4. image http://i1.iis.net/resources/images/configreference/fastCgi_application_howto_3.png?cdn_id=52867178000v1
Reference IIS Server http://www.iis.net/ConfigReference/system.webServer/fastCgi "Handlers" for php and the mapping for .php.
http://i3.iis.net/resources/images/configreference/fastCgi_application_howto_1.png?cdn_id=52867178000v1
Martin
Community Member Award 2011
mlp_1966
9 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 10:36 AM|LINK
Hi Martin
OK, those are also our server php file handling mappings (I think the WPI created them and labelled them as PHP52_via_FastCGI and PHP53_via_FastCGI - they were left as is). In the website settings in the "Set Up" of the PHP manager, file and folder handlings are inherited.
HCamper
8048 Posts
Re: Problems with PHP and IIS 7.5
Jan 25, 2012 10:43 AM|LINK
Hi,
Per Site Configurations: "PHP52_via_FastCGI" or "PHP53_via_FastCGI"
http://learn.iis.net/page.aspx/745/enable-per-site-php-configuration-on-iis-60-and-iis-7-and-above/ per-site-php -config.
PHP Secure you settings http://learn.iis.net/page.aspx/746/secure-your-infrastructure-and-php-applications/ .
Martin
Community Member Award 2011