PHP on IIS Server 2019 - How do I update it?

XR220 1 Reputation point
2021-09-28T11:55:42.64+00:00

I hope this is the right place to ask.

We have used Web PI to install php 7.3 and that's all working fine. However the version from Web PI is 7.3.7. How do we update php to 7.3.31 which is the current release?

Is it just a case of downloading 7.3.31 from php.net and overwriting the files in the existing directory with the VC15 x64 Non Thread Safe download?

Any advice greatly appreciated.

Windows development | Internet Information Services
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,771 Reputation points
    2021-09-29T02:33:36.973+00:00

    Hi @XR220 ,

    I suggest you install php manager in IIS. It can help you manage different versions of php and it is simpler to add new php than configure fastcgi manually. Download it from here.

    Please download php from this link and choose the zip:
    136054-3.jpg

    Please put all php folders in C:\Program Files (x86)\PHP for ease of management. (Web PI also install php in this folder)

    1. Click php manager to register new php version.
      136055-4.jpg
    2. Choose the php-cgi.exe of php 7.3.31 and OK.
      136056-5.jpg
    3. Click Change php version to check which version of php is using now.
      136087-6.jpg
    4. Then click Check php info and OK, it will output the version of php.
      136079-7.jpg

    If it doesn't output php version correctly and show error that fastcgi exited unexpectedly, you can use command line to run php-cgi.exe. It will tell you why php run failed. When I tested php 7.3.31, it ran failed because VCRUNTIME140.dll is missing. If you have same issue, please download it from here. Choose the x64 or x86 according to your machine.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    2 people found this answer helpful.
    0 comments No comments

  2. Victor Cabezas 25 Reputation points
    2023-05-09T14:50:58.1766667+00:00

    Hi @Bruce Zhang-MSFT I'm currently in version 7.1 of PHP Manager in IIS 10 and I need to upgrade to the latest version. Is that ok to jump all the way to 8.2 or should I go version by version? I have around 5 websites that work with PHP in IIS and I don't know if I'm going to break something.. Thanks!


  3. Ishan Uprety 0 Reputation points
    2025-09-25T01:38:17.6766667+00:00

    Hi there, Our intranet sites webserver is curretly using PHP version 7.4.21 and I'm trying to update it to 8.4.12.

    I've installed the new version in the web server and saved it in the same PHP folder where the older version was installed.

    After that I opened up IIS manager > webserver > Fast CGI settings and created a new fastcgi application with new php version folder path.

    Expanded sites and clicked on one of the intranet site

    Selected Handler mapping and updated the .php file with new path

    Saved and restarted the webserver but the website gives error 505 with the new version. If I change the fastcgi application back to the older version the site works again.

    Can someone please help me or let me know if I'm missing anything or suggest something? Thanks!

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.