Skip to main content
This documentation is for Passwork version 6.0, no longer supported.

See documentation for version 7.0.
Version: 6.0

Linux

Obtaining the latest Passwork version

  • Go to the Customer portal;
  • Authorise on the customer portal with your email address;
  • In the bottom left corner, click on the Update → Manual tab and download the latest Passwork version in .zip format:
Searching password by browser extension
  • Move the .zip archive to a physical/virtual server with Passwork.

Creating a backup and configuration file

Creating a backup

To create a MongoDB backup, you can use the following instructions — Examples of creating and restoring MongoDB backups

warning

If Passwork is installed on a virtual or cloud-based operating system, we recommend creating a restore point so that you can quickly roll back in case of errors

Creating a copy of the configuration file

The main Passwork parameters are specified in the config.ini configuration file. Create a copy of the file and save it in a separate or root directory of the user:

cp /var/www/app/config/config.ini ./

Updating the Passwork code and creating an archive of the old version

Code update

Rename the root directory with the Passwork code:

mv /var/www /var/copy_www

Create a www directory:

mkdir /var/www

Extract the latest version of the Passwork code to /var/www/:

unzip ./Passwork-xxxxxx.zip -d /var/www/

Check the extracted Passwork version:

cat /var/www/version

Move the config.ini configuration file and license key from the old version:

mv /var/copy_www/app/config/config.ini /var/www/app/config/
mv /var/copy_www/app/keys/passwork* /var/www/app/keys/

Creating an archive of an old version

Create a Passwork archive with the version name in .zip format in the /opt/ directory:

version=$(cat /var/copy_www/version) && zip -r /opt/${version}.zip /var/copy_www/

Delete the renamed directory with the old version of Passwork:

rm -rf /var/copy_www

Assigning an owner and setting rights

After creating the /var/www/ directory, you need to change the directory owner and set permissions for the Apache web server.

DEB-based Linux (Debian, Ubuntu, etc.)

find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;
chown -R www-data:www-data /var/www/

RPM-based Linux (Centos, RedHat, etc.)

find /var/www/ -type d -exec chmod 755 {} \;
find /var/www/ -type f -exec chmod 644 {} \;
chown -R apache:apache /var/www/