Legacy
...
Passwork 4
How to upgrade Passwork 4→5 ve...

Upgrade manual for Passwork 4→5 (Ubuntu 20.04)

10min

This manual describes how to upgrade Passwork from version 4 to version 5 for Ubuntu. 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.

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

Table of contents

1. Updating PHP to PHP 8.0

💡 PHP 8.0 specifically needs to be installed.

PHP 8.1 is not yet supported.

Shell


2. Selecting PHP 8.0 as the primary version of PHP

Shell


3. Installing the PHP Mongo driver for PHP 8.0

Shell


4. Installing Phalcon PHP extension for PHP 8.0

Shell


5. Updating Passwork source codes

Clone the repository using your username and password.

Shell

Shell


💡 The system will ask for a login and password to the repository, which you can find in your Passwork customer portal. If you don't have access to the customer portal, contact us.

Set permissions for folders and files.

Shell


6. Check configuration

If you are using HTTPS, check if the following setting has been made after updating the PHP version, enable the session.cookie_secure parameter in /etc/php/8.0/apache2/php.ini:

Shell


7. Configure background tasks

Background tasks are jobs that run on the scheduler in the background. For example, LDAP synchronization, loading favicons, and other tasks that require a lot of time, constant execution, or resource allocation.