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 IIS
PHP Manager for IIS
Copy the php_v7x.zip file to C:\Program Files (x86)\php
Copy the php.ini-production file and paste it into the same directory.
Rename the copied file to php.ini
Add the php folder to the System Path Variables
- Type Edit the system environment variables into the start bar, press the option
- Click the Environment Variables option
- From the system variables, click the Path option and press Edit.
- In the created row, copy/paste in the path to the PHP folder where the php-cgi.exe resides
E.g., C:\Program Files (x86)\PHP\v7.3
After pasting the path in, press OK to save the changes
On Windows Server, using Server Manager add the following feature:
World Wide Web Services → Application Development Features → CGI
On Windows, using Programs and Features (appwiz.cpl), Turn Windows Features on or off
Add optional feature under World Wide Web Services --> Application Development Features --> (CGI)
Add the required feature and press OK
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)
Press the browse option (...)
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 following (it may already exist)
- extension=php_odbc.dll
Save the php.ini file
Configure Firewall Settings
...
- Name: FworkSQLLic
- Description (optional): Enter a description for the database connection. For example, Framework ECM.
- Server: Select the SQL Server from the Server drop-down list.
OR
Enter the SQL Server name.
If there is an error following Step 8, change the server name above to: \[server name]\SQLEXPRESS
7. Click the Next button.
...
Folder Permissions for InternetGuestAccount(servername_IUSR)
Folder | Permissions |
---|---|
C:\inetpub\wwwroot\SupplierConnect\ | Read |
C:\inetpub\wwwroot\SupplierConnect\Sessions | Read Write Modify |
For the user account to give permissions, this must be the one that the web service is configured for.
E.g.,
- IIS_IUSRS
- IUSR
From the folder, right-click and go to properties.
On the security tab, press the Edit option
Press the Add option and find the user account to add the permissions to
Tick the required permissions options per the above table
Configure Website Files
Edit the file 'C:\inetpub\wwwroot\SupplierConnect\inc_files\config.php' using Notepad.
If this file is currently read-only, you must edit the properties of the file and uncheck this.
Modify the following lines with the DSN Name, Username and Password you used to create the ODBC Connection above.
...
$emailFromAddr = "SupplierConnect@frameworkecm.com.au"; // From email addresses,
Setting below is used to determine if the Email Receipt checkbox is automatically checked (on) or not checked (off).Setting below is used to determine if the Email Receipt checkbox is automatically checked (on) or not checked (off). Switch between "on" and "off". NOTE: If the response is a call off the checkbox will NOT be checked regardless of this setting.
$emailResponseReceiptOn = "off";
Check FrameworkSupplierConnect Portal
...
1. Open Web Browser.
2. In the URL, enter: http://[servername]localhost/SupplierConnect/response/response.php?sp=
If your SupplierConnect folder under c:\inetpub\wwwroot is named differently, or is under a subfolder, your URL must be adjusted accordingly.
Test SMTP Relay from IIS Server
This requires the telnet client to be installed, to do that, please perform the below commands:
...