IIS 7 & IIS 8
Problems with PHP and IIS 7.5
Last post Jan 25, 2012 12:55 PM by HCamper
Jan 25, 2012 03:11 AM|LINK
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...
Jan 25, 2012 03:21 AM|LINK
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"
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?
Jan 25, 2012 06:53 AM|LINK
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.
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.
Jan 25, 2012 09:31 AM|LINK
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)?
Jan 25, 2012 09:38 AM|LINK
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.
Jan 25, 2012 09:55 AM|LINK
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"
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.
6. Also install PHP Manager
Jan 25, 2012 10:09 AM|LINK
The Snag might in 4. image
Reference IIS Server http://www.iis.net/ConfigReference/system.webServer/fastCgi "Handlers" for php and the mapping for .php.
Jan 25, 2012 10:36 AM|LINK
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
Jan 25, 2012 10:43 AM|LINK
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