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 Name | DefaultSettingDefault Setting | Required Setting |
---|---|---|
max_execution_time | 300 | 60 |
error_reporting | E_ALL & ~E_DEPRECATED & ~E_STRICT | E_ERROR & E_WARNING |
register_argc_argv | Off | Off |
auto_globals_jit | On | On |
enable_dl | Off | Off |
cgi.force_redirect * | 1 | 0 |
fastcgi.impersonate * | 1 | 1 |
SMTP | localhost | [servername or IP address] |
smtp_port | 25 | [server'ssmtp portnumber] |
sendmail_from * | me@example.com | supplierconnect@yourdomainname.com.au |
odbc.defaultlrl | 4096 | 65536 |
session.auto_start | 0 | 0 |
...
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
...