Developers Getting Started With i2b2
Space shortcuts
Space Tools

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Microsoft has developed a free tool called Web Platform Installer and is designed to make the installation of PHP for windows easierStarting from release 1.8.0, full PHP install is no longer supported by Microsoft's Web Platform Installer as the extensions are not included by default. For this reason, install PHP using the Zip file install. The installation steps written below will walk you through installing PHP using the Web Platform Installerare as below.


Info
titleNote

For additional information about PHP for windows you can go to Microsoft's website at httpat https://windowslearn.phpmicrosoft.net/com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/install-and-configure-php


PHP Installation Steps

indent
Level1

1. Go to Microsoft's PHP on Windows page at httpsinstall section https://php.iis.net

indent
Level3

Image Removedlearn.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/install-and-configure-php#install-php


Info

Make sure to select the link for non-thread-safe zip file for the install.


indent
Level1

2. Click on the Install PHP NOW button to download the installer. 

Info
titleNote

i2b2 only requires that PHP be installed, it does not require a specific version. You can select the appropriate version for your environmentDownload the zip file underVC15 & VS16 Non Thread Safe section.

Once the download has finished, extract the files to directory on your IIS server. (for example, C:\PHP


Info

The VC15 and VS16 PHP builds require that the Visual C++ Redistributable for Visual Studio 2015-2019 x64 or x86 be installed. Make sure you have the install.


indent
Level1

3. Once the download has finished go to the location in which you downloaded the file.PHP files are extracted, copy the php.ini-production file to php.ini


Image Added


indent
Level1

4. Click on the file to start the Web Platform Installer.Edit the php.ini to set the parameters for 

fastcgi.impersonate =1

cgi.fix_pathinfo=0

cgi.force_redirect =0

open_basedir=c:\inetpub\wwroot


Image Added


indent
Level1

5.

The installer will walk you through the installation of PHP.

Follow the documentation in https://learn.microsoft.com/en-us/iis/application-frameworks/install-and-configure-php-on-iis/install-and-configure-php to complete the PHP configuration.

Configuring IIS for PHP

Configure IIS server for PHP integration as below.

indent
Level1

6. Under the Select roles, check the Web Server (IIS)


Image Added


indent
Level1

7. Under the Select role services, check the CGI selection 


Image Added