Forum Discussion

Stephen Palmstrom's avatar
Stephen Palmstrom
Brass Contributor
Dec 06, 2021

Windows Server 2022 Datacenter Web Platform Installer doesn't work

I came close to giving up on migrating web sites from Windows Server 2019 Datacenter to Windows Server 2022 Datacenter under Azure as I couldn't get PHP to work.

  1. Web Platform Installer in IIS hasn't installed anything successfully! It told me that it hadn't installed PHP when it had at least installed it partially.
  2. I therefore installed PHP Manager for IIS from a download as well as URL Rewrite.
  3. Using PHP Manager to get phpinfo crashed FastCGI and I couldn't seem to solve the issue. Eventually, I found a suggestion that you should run 

    .\php.exe -info

    in PowerShell from the PHP installation directory. This revealed an issue with the Visual C++ Redistributable, solved by downloading and installing:
    https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170 

    I offer this in case others hit the same problem.

1 Reply

  • Techi_Jack's avatar
    Techi_Jack
    Copper Contributor
    PHP installation on Windows server is not as straightforward as installing other software.
    You can manually install php 8.3 on windows server 2022 by following the article
    https://techijack.com/php-installation-on-windows-iis-server/

Resources