We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

How to Upgrade PHP in IIS?RSS

3 replies

Last post Sep 20, 2018 11:08 PM by cthacker

  • How to Upgrade PHP in IIS?

    Apr 26, 2017 04:57 PM|andre.thomas|LINK

    System Type: 64-bit
    Windows Edition: Windows Server 2008 R2 Enterprise
    Microsoft Windows Server: 6.1
    Current PHP: v5.2
    Upgrading to: v7.0
    IIS Version: 7.5.7600.16385

    For some reason I don't think this should be hard but I just can't seem to figure it out after hours of reading blog posts and things.

    I am trying to update PHP for my WordPress multi-site installation on a Windows server using IIS.

    • I downloaded the recommended PHP zip file.
    • I put it in the Program files (86x) dir.
    • I got the proper handler mapping pointing to the php-chi.exe file (named PHP_via_FastCGI, if that matters)
    • Made the configuration file in PHP manager is point to the php.ini file in the same php v7.0 folder.
    • And changed the environmental variables to point to the new PHP folder.

    Now, the problem I'm getting is that when I go to the actual site (in Chrome), it reads...

    This page isn't working 
    dev.fcps.net is currently unable to handle this request.
    HTTP Error 500

    I am a System's Analyst at a school district that manages this install for about 300-something teachers who have WordPress pages (did I mention that it was a multi-site install?) This is the DEV server that I'm working on. The original server is down to a slow crawl all of a sudden and I'm hoping this (really really past due) upgrade will help fix some kinks.

    Any ideas as to why this still isn't working? Your help and assistance is much appreciated. This is giving me a headache.

  • Re: How to Upgrade PHP in IIS?

    Apr 26, 2017 07:44 PM|terridonahue|LINK

    I ran into a similar error with a different version of php and wrote a blog post about it. This may not be the root cause, but I would take a look at my post and the forum post I used to resolve the issue. 

    Terri Donahue
    Microsoft MVP ASPNET/IIS

    Please 'Mark as Answer' if this post helps you.
  • Re: How to Upgrade PHP in IIS?

    Apr 26, 2017 07:49 PM|andre.thomas|LINK

    Thank you. I'll check it out now.


    I check it out and I'm kind of on a new course. I clicked the php executable file and it told me I was missing a dll file. I downloaded it and added it to the PHP directory and then tried it again. Now it's saying I need another dll file. I thought that I was probably chasing the wind because the second dll file said I needed was the OCI.dll file but the "O" stands for Oracle and I am not using Oracle at all for this website.

    I clicked "OK" and a bunch of "Cannot find module..." messages came up.

  • Re: How to Upgrade PHP in IIS?

    Sep 20, 2018 11:08 PM|cthacker|LINK

    "Preferred" but Web Platform Installer is frequently behind the PHP releases. Your steps to "manually" update PHP aren't really manual. You're describing how to use Web Platform installer which does it for you but not to the latest version.