Partner and Community Forums
Installing PHP5 on Windows 2008 x64 box with IIS7
Last post Apr 01, 2011 11:19 AM by clayhess
Mar 31, 2011 06:21 PM|clayhess|LINK
I went through the step by step instructions on the site and when I try to display phpinfo(), it attempts to download the php file/source code. I cannot figure out where I went wrong. Have you run into this before?
Apr 01, 2011 12:53 AM|hostingaspnet|LINK
It seems that your PHP installation is not correct. Try to reinstall again.
Apr 01, 2011 04:30 AM|topspy|LINK
that means your php handler mapping not correct. you may have to start from scratch and make sure you install it in correct way.
Apr 01, 2011 07:19 AM|clayhess|LINK
What should the mapping be?
Apr 01, 2011 07:56 AM|clayhess|LINK
k...went through the reinstall process and same result. .php page tries to download instead of displaying. Thoughts?
Apr 01, 2011 09:20 AM|clayhess|LINK
ok..one thing that I had configured incorrectly was that I had set a mime type for php. When I removed that, I get the 404.3 error. This leads me to believe that php is not installed correctly, but I have reinstalled three times and followed the directions
every time. Thoughts?
Apr 01, 2011 10:00 AM|HCamper|LINK
No "Thoughts" just a plan to get PHP working!
The option the installer for "Create Association for Explorer" is why your getting the open with dialog.
You may have other PHP installer problems also.
The best thing to do is do a total uninstall of the PHP using the windows installer.
Then do install of PHP by selecting only items that are required to get PHP installed & working.
A) Do not select the "Create Association for Explorer".
Please take the time to read the Hints & information for each installer option.
For Extensions the tabs are expandable and may contain additional items.
For the Extensions take note that many are marked with red x and are un-selected.
Some may be Grey indicating that all sub items will be installed.
The red x indicated items that will not be installed un-less you over-ride that setting.
B) In the installer & Extensions section do not select Oracle unless you have Oracle Database libraries installed.
C) In the installer Extensions do not select GMP unless you have GIMP or Image Magick installed & libraries.
D) In the installer & Extensions do select MySQL & MySQli for use with the MySQL Server and libraries.
E) In the installer & Extensions do select the MySQL PDO for MySQL.
F) In the installer & Extensions look at the descriptions and select the remaining extensions for what you only require.
G) In the installer there is an option for creating mapping for PHP and Web Servers do select the one of IIS Server.
H) You may find selecting the options to install the PHP Manual of use so select that as you desire.
After the installer has completed you should read the IIS Net Learning guides for configuration of the php.ini
and getting FastCGI going with a Handler for *.php and use in IIS Server.
If you have questions for the php.ini you can post the questions to the Forums. There are some good posts in
the PHP Community & FastCGI Forums that have cover 99% of the problems for PHP & IIS Server.
I hope this helps,
Apr 01, 2011 10:30 AM|clayhess|LINK
ok...here is the latest...I realized that I made the settings changes at the server level, but not the site level. The site level was missing the handler mapping. Once I fixed that I ran into this error...
I changed the handler from using fastCGI to just CGI and php worked. I understand that it is preferred to use the fastCGI. Has anyone ran into this before and fixed it? Can you point me in the right direction?
Apr 01, 2011 10:39 AM|HCamper|LINK
I suggest that you look at the set-up for FastCGI and Recycling it maybe what is missing since you previously
used the CGI.
The guide is here
Apr 01, 2011 11:19 AM|clayhess|LINK
It worked!...Thanks a heap.