Administration
...
Updating Passwork components
PHP

DEB

9min

Preparing for the update

Before updating PHP, if Passwork is installed in a cloud/virtual environment, create a snapshot to restore functionality in case of an incorrect update.

Get root privileges and update the local package database:

shell


Uninstall PHP

Disable the module for Apache2:

shell


Remove the main package, drivers, and PHP extensions:

shell


Clear the system of dependencies:

shell


Installing PHP

Install PHP with extensions and drivers:

shell


Installing a PHP MongoDB driver

Install PHP MongoDB driver:

Shell


Create configuration files for PHP MongoDB startup and activation:

Shell


Installing the PHP Phalcon extension

Install the PHP Phalcon extension:

Shell


Create configuration files for PHP Phalcon startup and activation:

Shell


Force PHP to be enabled for Apache2 and switch the alternate version for executables:

shell


If HTTPS connection to Passwork is used, you need to change the configuration file /etc/php/8.2/apache2/php.ini, namely the line — ;session.cookie_secure =session.cookie_secure = 1:

shell


Restart the web server service:

shell




Updated 10 Oct 2024
Doc contributor
Doc contributor
Did this page help you?