Migration to Passwork 7
Upgrade PHP to 8.3
Windows Server
5 min
before updating php, if passwork is installed in a cloud/virtual environment, create a snapshot of the virtual state of the os to restore functionality in case of an incorrect update retrieving the archive open a web browser where passwork is installed and follow the link to get php8 3 — https //repos passwork pro/repository/windows packages/php build/83/php latest zip https //repos passwork pro/repository/windows packages/php build/83/php latest zip please note, this archive includes the phpx64 version unzip the contents of the archive to — c \program files\\ version change go to — server manager → tools → internet information services (iis) manager expand the passwork website and go to — php manager register new php version and specify the path — c \program files\php8 3\php cgi exe go to — enable or disable an extensions activate drivers and extensions restart the passwork website remove obsolete php versions from the path environment variable using powershell powershell function remove oldphppaths($target) { $envrecords = \[system environment] getenvironmentvariable("path", $target) split ";" $phppathstoremove = $envrecords | where object { ($ imatch "php") and ((split path $ leaf) imatch '^(?\ v?(?\ php)?)?(?\<version>\d+\\ \d+)$') } if ($phppathstoremove count gt 0) { $newpath = $envrecords | where object { $phppathstoremove notcontains $ } \[system environment] setenvironmentvariable("path", ($newpath join ";"), $target) write host "outdated php version removed from path environment variable" foregroundcolor green } else { write host "outdated php version not found in path environment variable" } } remove oldphppaths "user" remove oldphppaths "machine" add php to the path environment variable using powershell powershell \[system environment] setenvironmentvariable("path", \[system environment] getenvironmentvariable("path", \[system environmentvariabletarget] machine) + ";c \program files\php8 3", \[system environmentvariabletarget] machine) $env\ path = \[system environment] getenvironmentvariable("path", \[system environmentvariabletarget] machine) upgrade php to 8 3 docid\ hd5a tumf1dwmddx02z8q passwork update to version 7 docid\ mirirltabi9ksiabc5ih1