Legacy
Passwork 4

Windows server 2016/2019

16min
how to install passwork on windows server 2016/2019 1\ set hostname, install iis 10, open 5353 port press win+x , then y and change default hostname change server hostname to passwork to enable passwork local domain in your private network open “server manager” and add “web server (iis)” role 2\ install mongodb database open link https //www mongodb com/download center/community choose “server”, in the “version” field, select the 4 2 version, in the “os” field, select “windows”, in the “package” field, select “msi”, then click “download” the process of downloading the mongodb package will begin run the downloaded file to begin the installation process or you can use the link https //fastdl mongodb org/win32/mongodb win32 x86 64 2012plus 4 2 0 signed msi https //fastdl mongodb org/win32/mongodb win32 x86 64 2012plus 4 2 0 signed msi to download the current version (at the time of writing the instructions) directly click “next”, agree to the terms of use, click “next” again select the “complete” option check "install mongod as a service" click "next" tick off “install mongodb compass” click “next” then “install” to start installation process click “finish” after installation ends 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 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\4 2\bin\mongod exe", then click "add" and "ok" verify that mongodb has started successfully verify that mongodb has started successfully by checking the log file at c \program files\mongodb\server\4 2\log\mongod log for the following line \[initandlisten] waiting for connections on port 27017 3\ php installation we will use web platform installer for php installation, so open ie and go to https //www microsoft com/web/downloads/platform aspx https //www microsoft com/web/downloads/platform aspx url to install the extension then click “run” accept terms and press “install” press “finish” after installation ends open “server manager”, go to “tools” and click on “internet information services (iis) manager”, select server and double click on “web platform installer” go to “products” tab and search for php select php 7 3 from the list and press “add” then press “install” and accept third party license terms you will see php manager for iis failed to install, this notice can be ignored click “finish” click “finish” 4\ installing the mongodb php driver, phalcon framework and enabling additional extensions and options go to https //windows php net/downloads/pecl/releases/mongodb/1 5 5/php mongodb 1 5 5 7 3 nts vc15 x86 zip to download mongodb php driver go to https //github com/phalcon/cphalcon/releases/download/v3 4 4/phalcon x86 vc15 php7 3 3 4 4 nts zip to download phalcon framework extract the “php mongodb 1 5 5 7 3 nts vc15 x86 zip” archive and copy “php mongodb dll” to “c \program files (x86)\php\v7 3\ext” extract the “phalcon x86 vc15 php7 3 3 4 4 nts zip” archive and copy “php phalcon dll” to “c \program files (x86)\php\v7 3\ext” open “c \program files (x86)\php\v7 3\php ini” in notepad and add to the \[extension list] section the following lines extension=php mongodb dll extension=php phalcon dll extension=php ldap dll save modifications and close the notepad download and install visual c++ redistributable packages for visual studio 2015 https //www microsoft com/en us/download/details aspx?id=40784 choose "vcredist x86 exe" version restart “iis” to reload php extensions 5\ download and install passwork sign in to your passwork customer portal https //portal passwork pro/ https //portal passwork pro/ if login failed add http //portal passwork pro to the trusted sites in ie settings (settings → security tab → trusted sites) download passwork as a zip archive extract archive and copy content to “c \inetpub\wwwroot\” directory set correct permissions open iis manager, then right click on website and click “edit permissions” press “edit”, then “add” and search for “iusr” object select “iusr” and grant “write” permissions then click “ok” twice 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” rewrite rules using the “web platform installer” install the “url rewrite” module 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 click “apply” button once imported open http //passwork local http //passwork local/ to access website 6\ installation 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 7\ configure ssl certificate on iis 10 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 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”) then click “close” check ssl connection by going to https //passwork local https //passwork local/ 8\ configuring the product to work correctly in chrome with ssl 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 (x86)\php\7 3\php ini file session cookie secure = on and set the parameter disablesamesitecookie ( \[application] section)in file c \inetpub\wwwroot\app\config\config ini to value off disablesamesitecookie = 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