Debian 10
Change server hostname to "passwork".
Automatic local network configuration and discovery.
Change AVAHI_DAEMON_DETECT_LOCAL from 1 to 0.
Set:
Restart:
Import the public key used by the package management system.
Create a /etc/apt/sources.list.d/mongodb-org-4.2.list file for MongoDB.
Reload local package database.
Install the latest stable version of MongoDB.
Start MongoDB Service.
Enable mongod service start on the system boot.
Get the gpg key:
Add the new repository to sources:
Install PHP and additional extensions.
Clone the repository using your login and password.
💡 The system will ask for a login and password to the repository, which you can find in your Customer Portal. If you don't have access to the Customer Portal, contact us.
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.
Open http://passwork.local or http://127.0.0.1 to access website.
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
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.
First, 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.
Invoking this command will result in a series of prompts.
- Common Name: Specify your server's IP address or hostname. This field matters, since your certificate needs to match the domain (or IP address) for your website.
- Fill out all other fields at your own discretion.
Example answers are shown below.
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 connection (HTTPS), the Chrome browser requires the Secure and SameSite flags for the cookies. Without these flags, the browser will not accept cookies, and you will not be able to log into Passwork in Chrome.
To set these flags, enable the session.cookie_secure parameter in the /etc/php/7.3/apache2/php.ini file:
And set the parameter disableSameSiteCookie ([application] section)in file /var/www/app/config/config.ini to value Off:
💡 Do not set these parameters or reset them to their original value if you change your mind about using SSL and will be working over 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.