Legacy
...
Passwork 4
How to update Passwork 4→5 ver...
Update for Passwork 4→5 (Ubuntu 20.04)
10min
this manual describes how to update 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 update 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 apt get update apt get install y php8 0 php8 0 dev php8 0 ldap php8 0 xml php8 0 bcmath php8 0 mbstring php8 0 curl 2\ selecting php 8 0 as the primary version of php a2dismod php7 3 # if necessary, disable all versions of php except version 8 0 a2enmod php8 0 update alternatives set php /usr/bin/php8 0 update alternatives set phar /usr/bin/phar8 0 update alternatives set phar phar /usr/bin/phar phar8 0 update alternatives set phpize /usr/bin/phpize8 0 update alternatives set php config /usr/bin/php config8 0 systemctl restart apache2 3\ installing the php mongo driver for php 8 0 apt get install y php pear pecl install f mongodb echo "extension=mongodb so" | tee /etc/php/8 0/apache2/conf d/20 mongodb ini echo "extension=mongodb so" | tee /etc/php/8 0/cli/conf d/20 mongodb ini 4\ installing phalcon php extension for php 8 0 pecl install f psr echo "extension=psr so" | tee /etc/php/8 0/apache2/conf d/20 psr ini echo "extension=psr so" | tee /etc/php/8 0/cli/conf d/20 psr ini pecl install f phalcon 5 0 0beta3 echo "extension=phalcon so" | tee /etc/php/8 0/apache2/conf d/30 phalcon ini echo "extension=phalcon so" | tee /etc/php/8 0/cli/conf d/30 phalcon ini systemctl restart apache2 5\ updating passwork source codes clone the repository using your username and password cd /var/www git config global add safe directory /var/www git fetch git reset hard origin/v5 git checkout v5 💡 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 find /var/www/ type d exec chmod 755 {} \\; find /var/www/ type f exec chmod 644 {} \\; chown r www data\ www data /var/www/ systemctl restart apache2 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 session cookie secure = on 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 background tasks docid\ pj1ekrpvv2ndjc8hbpacp