Versions Compared

Key

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

PHP install/upgrade

...

            PHP 7.3.X (x86) for IIS Express

            Microsoft Drivers 4.3 (x86) for PHP v7.3 for SQL Server in IIS

            Windows Cache Extension 2.0 (x86) for PHP 7.3 in IIS Express (Automatically selected when PHP is selected)

            PHP Manager for IISPHP Manager for IIS


Copy the php_v7x.zip file to C:\Program Files (x86)\php

Copy the php.ini-production file, rename it to php.ini

Add the php folder to the System Path Variables

Add optional feature under World Wide Web Services --> Application Development Features --> (CGI)

Install PHP Manager

Run IIS Manager

Against the server, select the PHP Manager option

Click on the register PHP Version, and navigate to your installed php path (e.g., C:\Program Files (x86)\php)

Click on the php-cgi.exe file


Configure PHP.ini File

Edit the php.ini file, this is typically located here:
C:\Program Files (x86)\PHP\v7.1X\php.ini

Depending on the version of PHP installed, your installation path may be different.

Update the following Settings

FieldNameField NameDefaultSettingDefault SettingRequired Setting
max_execution_time30060
error_reportingE_ALL & ~E_DEPRECATED & ~E_STRICTE_ERROR & E_WARNING
register_argc_argvOffOff
auto_globals_jitOnOn
enable_dlOffOff
cgi.force_redirect *10
fastcgi.impersonate *11
SMTPlocalhost[servername or IP address]
smtp_port25[server'ssmtp portnumber]
sendmail_from *me@example.comsupplierconnect@yourdomainname.com.au
odbc.defaultlrl409665536
session.auto_start00

...

Find the Extensions section at the bottom of the php.ini file

Add the following 

  • extension=php_odbc.dll

Save the php.ini file

Configure Firewall Settings

...