Passwork is not demanding on the resources of the server(s). The amount of resources (RAM, CPU, HDD) and the number of servers depends on the number of active users, the amount of stored data, and the requirements for system fault tolerance.
💡 If the server has 2-4 GB RAM, it is recommended to enable a SWAP file to build all libraries correctly.
Change server hostname to "passwork".
Automatic local network configuration and discovery.
Change AVAHI_DAEMON_DETECT_LOCAL from 1 to 0.
Install gnupg and import the public key used by the package management system.
Create the file /etc/apt/sources.list.d/mongodb-org-4.4.list
Update the local package database.
Install the latest stable version of MongoDB.
Create database directory
Start MongoDB Service.
Enable mongod service start on the system boot.
💡 PHP version 8.0 must be installed. Newer versions are not yet supported.
Add the PPA
Install PHP and additional extensions
Set PHP 8.0 version
Clone the repository using your login and password.
Set up permissions for the files.
Configure your Apache2
Open Apache’s configuration file.
Make it look like this:
Enable rewrite module and restart Apache.
When you open Passwork for the first time, you will see an installation wizard that will check if the server is configured correctly and allow you to enter the basic parameters.
💡 Leave all fields at their default values if you are installing a new copy of Passwork
💡 Please note, the randomly generated key of the setup page is used to encrypt the database.
Sign up an administrator
Enter the username and password for the first user. The user will automatically become the administrator and owner of the organization.
Enable the Apache SSL module.
Activate the default Apache website.
Restart Apache to put these changes into effect.
Create a new directory where we can store the private key and certificate.
Generate a new certificate and a private key to protect it.
- Common Name(CN): Specify your server's IP address or hostname. This field is important because your certificate must match the domain (or IP address) for your website.
- subjectAltName(SAN): Alternative domain names or IP address.
Set the file permissions to protect your private key and certificate.
Your certificate and the private key that protects it are now ready for Apache to use.
When working over an SSL (HTTPS) connection, the Chrome browser requires the Secure and SameSite flags for cookies. *Without these flags, the browser won't accept cookies and you won't be able to authorize in Passworld in Chrome.
To set these flags, enable the session.cookie_secure parameter in /etc/php/8.0/apache2/php.ini manual or command:
And set the disableSameSiteCookie parameter (section [application]) in /var/www/app/config/config.ini to Off manual or command:
💡 Please note that the `config.ini` file is generated after going through the initial setup on the installation page.
💡 Do not set these parameters or reset them if you change your mind about using SSL and work via the HTTP protocol.
Open the server configuration.
Locate the section that begins with <VirtualHost _default_:443> and make the following changes.
- Add a line with your server name directy below the ServerAdmin email line. This can be your domain name or IP address:
- Add “Directory” directive next to the “ServerName”.
- Find the following two lines, and update the paths to match the locations of the certificate and key we generated earlier. If you purchased a certificate or generated your certificate elsewhere, make sure the paths here match the actual locations of your certificate and key:
Once these changes have been made, check that your virtual host configuration file matches the following.
Restart Apache to apply the changes.
Check SSL connection by going to https://passwork.local.
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.