Release candidate
...
Administration
Passwork update

Windows Server

12min

Please note:

  • This instruction assumes the following:
    • The physical location of Passwork is — C:\inetpub\wwwroot\passwork
    • The name of the Passwork website is — Passwork Web Site
  • Before updating, if Passwork is installed in a cloud/virtual environment, create a snapshot of the virtual OS state to restore functionality in case of an incorrect update.

Obtaining the latest version of the Passwork

Create a temporary directory to receive the Passwork:

PowerShell


You need to go to the Passwork customer portal, copy the certificate number and get Passwork version 7 through the address bar of your browser — https://portal.passwork.pro/api/version?rc=yes&apikey=certificate_number

Go to the Passwork customer portal and copy the API key to get the current version:

Document image


Create an API_KEY variable with the certificate number:

PowerShell


Get version 7 of Passwork using the prompt:

PowerShell


Clear the API_KEY variable with the certificate number:

PowerShell


Update to the latest version

Get the current version of Passwork into a variable:

PowerShell


Copy the Passwork configuration files to a temporary directory:

PowerShell


Create an archive of the current version of Passwork to be able to roll back to a previous version:

PowerShell


Delete all contents from the Passwork directory:

PowerShell


Unzip Passwork version 7 to a physical location:

PowerShell


Move the copied Passwork configuration files to the new version:

PowerShell


Delete the new_version temporary directory:

PowerShell


Set permissions for the physical location of the Passwork:

PowerShell


Download the web.config rewrite rules and place them in the new Passwork version — C:\inetpub\wwwroot\passwork\public\web.config

PHP registration and extension activation

Import IIS modules and register the PHP version:

PowerShell


Activate PHP extensions for the Passwork website:

PowerShell


Activate additional PHP methods for the Passwork website:

PowerShell


Go to the Passwork root location and update the Passwork version in the database:

PowerShell