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.

Internet Information Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,736 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 20 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!