Migration to Passwork 7
Upgrade PHP to 8.3
Windows Server
5min
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 $envrecords = \[system environment] getenvironmentvariable("path", "user") split ";" $phppathstoremove = @() foreach ($entry in $envrecords) { if ($entry imatch "php") { $lastfolder = split path $entry leaf if ($lastfolder imatch '^(?\ v?(?\ php)?)?(?\<version>\d+\\ \d+)$') { $version = $matches\['version'] $phppathstoremove += $entry } } } if ($phppathstoremove count gt 0) { $newpath = $envrecords | where object { $phppathstoremove notcontains $ } \[system environment] setenvironmentvariable("path", ($newpath join ";"), "user") write output "an outdated version of php has been removed from the path environment variable" } else { write output "outdated php version not found in path environment variable" } 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