Windows Server 2016/2019
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.
Press Win+X, then Y and change default hostname. Change server hostname to passwork to enable passwork.local domain in your private network.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/sPQTGKlVzCAakB93ll3mR_image.png?format=webp)
To complete changes reboot the server.
Open “Server Manager” and add “Web Server (IIS)” role.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/B2e-bMF8Eu_NlMtXglt7Y_image.png?format=webp)
Install "CGI" for "IIS".
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/Aoc7OD2n8tnxgQH7u1yam_image.png?format=webp)
Allow inbound UDP connection on 5353 port in firewall settings.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/ls4oPs1hM6QqfOa6U5FZ6_image.png?format=webp)
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/AnrZJEMiJENXm2itk18-L_image.png?format=webp)
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/LnZIMwDCXZ3FsTN9ZA99N_image.png?format=webp)
Download MongoDB 6
Download MongoDB 6.0 from the official website and run the installation
During the installation process, select "Complete" in the "Choose Setup Type" item
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/hSB7mrDgte1LJIcCmdmJE_cleanshot-2024-02-08-at-1530592x.png?format=webp)
Then press "Next"
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/UveWsn9eG_NBhdS8ois66_cleanshot-2024-02-08-at-1531432x.png?format=webp)
Uncheck installation — MongoDB Compass and run installation — MongoDB
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/AGku3hVsrs8hiW8OgQl4F_cleanshot-2024-02-08-at-1532332x.png?format=webp)
Installing the administration utilities
In MongoDB versions 5.0 and higher, you must install the administration utilities to perform standard backup and restore commands.
Download the administration utilities from the official MongoDB site by following the link
Perform installation of default utilities, these utilities will be located in the directory — C:\Program Files\MongoDB\Tools\100\bin\
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/zMSLKzHVWuJlknkmucLmn_cleanshot-2024-02-08-at-0459252x.png?format=webp)
Installing the mongosh utility
Download the mongosh utility from the official MongoDB website using this link
Unzip the .zip archive to the download directory using — PowerShell
Move the extension and the mongosh utility to the directory — Tools
Test the connection to MongoDB with the following commands in — PowerShell
Windows Firewall Setup
Go to your “Control Panel” and then click on “System and Security”. Once there, click on “Windows Firewall”.
You should now see your Windows firewall like this:
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/tmDTBqLGQLsxSL6p6poVd_image.png?format=webp)
Click on “Allow an app or feature trough Windows Firewall”, your window will change. Click on “Allow another app.” -> click “Browse” and add MongoDB Database Server application "C:\Program Files\MongoDB\Server\6.0\bin\mongod.exe", then click "Add" and "Ok".
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/1N1tAI42NWhiiPkJuRkDq_image.png?format=webp)
Verify that MongoDB has started successfully
Verify that MongoDB has started successfully by checking the log file at C:\Program Files\MongoDB\Server\6.0\log\mongod.log for the following line: [initandlisten] waiting for connections on port 27017
💡 PHP version 8.2 must be installed. Newer versions are not yet supported.
- Check the properties of the archive. Remove the property "locked" if the archive received it when downloading.
- Unpack the archive
- Move the folder with the unpacked archive (In this example the path is C:\Program Files\php8)
Download and install Visual C++ Redistributable Packages for Visual Studio.
⬇️ https://download.visualstudio.microsoft.com/download/pr/b929b7fe-5c89-4553-9abe-6324631dcc3a/296F96CD102250636BCD23AB6E6CF70935337B1BBB3507FE8521D8D9CFAA932F/VC_redist.x64.exe
And PHP Manager for IIS:
⬇️ https://github.com/phpmanager/phpmanager/releases/download/v2.7/PHPManagerForIIS_x64.msi
Go to — "Server Manager" → "Tools" → "Internet Information Services (IIS) Manager"
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/rzyQ5CTvEWljecLWa8j4c_cleanshot-2024-02-17-at-010630.png?format=webp)
Expand the website and go to — "PHP Manager"
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/fSVr-c7eU6Y4w8XiGGnAw_cleanshot-2024-02-17-at-010827.png?format=webp)
Click "Register new PHP version" and specify the path — C:\Program Files\php8.2\php-cgi.exe
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/T38q9r1emchnHThyimuYw_cleanshot-2024-02-17-at-011237.png?format=webp)
Go down to the bottom and go to — "Enable or disable an extensions". Activate the following extensions as shown on the screenshot
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/yOhZLD0hsRhBKnRDtFCSb_cleanshot-2024-02-17-at-011314.png?format=webp)
After completing the steps, restart the edited website
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/rRkkgF_uM8tud1c2o0Lgt_cleanshot-2024-02-17-at-011333.png?format=webp)
Sign in to your Passwork customer portal:
If login failed add portal.passwork.pro to the trusted sites in IE settings (settings → security tab → trusted sites).
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/I1lGlwRRIqWHPyOhydqZe_image.png?format=webp)
Download Passwork 6 as a ZIP-archive
💡 Please note that these instructions are for installing version 6 of Passwork (6.x.x). To install previous versions of Passwork, contact technical support.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/o3xDuu6fPJ-McSwTc2xQJ_image.png?format=webp)
Extract archive and copy content to “C:\inetpub\wwwroot\” directory.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/GD8ZJAThuI3z_j2xXjAZp_image.png?format=webp)
Set correct permissions
Open IIS Manager, then right click on website and click “Edit permissions”.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/ZZvVdh0zgRZwubizxYydy_image.png?format=webp)
Press “Edit”, then “Add” and search for “IUSR” object. Select “IUSR” and grant “Write” permissions then click “Ok” twice.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/zZWFxNWa9oOP-0ZT5ZwHM_image.png?format=webp)
Change website physical path
Right click on “Default Web Site” > “Manage Website” > “Advanced Settings”. Change website physical path to “C:\inetpub\wwwroot\public\”, then click “Ok”.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/byP9t1oZvQ4pXc6D7oiS3_image.png?format=webp)
Rewrite rules
Download and install URL Rewrite : The Official Microsoft IIS Site
⬇️ https://www.iis.net/downloads/microsoft/url-rewrite#additionalDownloads
Close IIS Manager and open it again, select a website. Double click on “URL Rewrite” icon. Click “Import rules” and select .htaccess file from website root directory, then click “Open” and “Import” buttons.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/8G8-d73MI90ZXV8r-DUgF_image.png?format=webp)
Click “Apply” button once imported.
Open http://passwork.local 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.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/jKK52qYkvDBwxlSLLrPIH_image.png?format=webp)
Open “Server Manager”, go to “Tools” and click on “Internet Information Services (IIS) Manager”, select server and double click on “Server Certificates”, then import certificate.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/k5KKZKoauap-qMbaUk9FJ_image.png?format=webp)
Go to sites, select your site and click “Bindings”. Select “https” protocol from drop-down list. Enter hostname “passwork.local”. Select SSL certificate from the list (in our case cert name is “https”).
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/gVc_9ioHctPu0-FP11nVF_image.png?format=webp)
Then click “Close”.
Check SSL connection by going to https://passwork.local.
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 C:\Program Files\php8.2\php.ini file:
And set the parameter disableSameSiteCookie ([application] section)in file C:\inetpub\wwwroot\app\config\config.ini to value Off:
💡 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 to their original value if you change your mind about using SSL and will be working over the HTTP protocol.
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.