This manual describes how to upgrade Passwork from version 4 to version 5 for Windows Server. Passwork version 5 runs on PHP 8.0, so in addition to updating the source code you will also need to install a new version of PHP.

<aside> 💡 We recommend that you make a backup of your system before you start the upgrade

</aside>

Table of contents

1**. Installing PHP 8.0**

<aside> 💡 PHP 8.0 specifically needs to be installed. PHP 8.1 is not yet supported.

</aside>

  1. Download PHP 8.0 from the official site — https://windows.php.net/downloads/releases/php-8.0.30-nts-Win32-vs16-x64.zip
  2. Check archive properties. Remove the "locked" property if the archive received it when downloading
  3. Unzip archive
  4. Move the folder with the unpacked archive (In this example, the path — C:\\Program Files\\php8)
  5. Install VC++ Visual C++ Redistributable Packages for Visual Studio:

<aside> ⬇️ https://download.visualstudio.microsoft.com/download/pr/b929b7fe-5c89-4553-9abe-6324631dcc3a/296F96CD102250636BCD23AB6E6CF70935337B1BBB3507FE8521D8D9CFAA932F/VC_redist.x64.exe

</aside>

  1. Restart the system.

2**. Adding Extensions Phalcon and MongoDB for PHP 8.0**

Download archives with extension files:

<https://github.com/phalcon/cphalcon/releases/download/v5.3.1/phalcon-php8.0-nts-windows2019-vs16-x64.zip>
[<https://windows.php.net/downloads/pecl/releases/mongodb/1.13.0/php_mongodb-1.13.0-8.0-nts-vs16-x64.zip>](<https://windows.php.net/downloads/pecl/releases/mongodb/1.13.0/php_mongodb-1.13.0-8.0-nts-vs16-x64.zip>)

Check archive properties. Remove the "locked" property if the archive received it when downloading.

Place the extension files in the directory — C:\\Program Files\\php8\\ext