Symptoms
Upgrade of PHP package fails on Windows host. OA registers the following event:
Installation of package PHP 5.6.14.6 (id=5411) to host WINWEB01.provider.local (id=262) was failed. Reason: Failed to process executeUpdateSequence at xpath tail HOOKS/HOOK[@when='prepost' and @upgrade='yes']/child::* for pkgId: 5411, ex message is: Failed to process EXEC command for package PHP of type other having pkgId: 5411, exception message: Invalid exitCode, HCL out: , HCL err: , HCL exit code: 1 input xml: <EXEC cmd="cmd.exe" group="" user="">
<ARG value="/c"/>
<ARG value="CScript.exe //NoLogo"/>
<ARG value=""${php.install.full.path}\setup\setup.vbs" install ...
Other point of interest is poa.log
on target host, when the following entry could be found:
WINWEB01 : DBG [task:9283736 262:6256:12d8 pleskd ]: [ HCL::HCLtoMPF::exec] Exec (cmd.exe /c CScript.exe //NoLogo "C:\PHP5\setup\setup.vbs" install "D:\PHPSessionData" "C:\PHP5\setup\custom_php.ini" "D:\PHPUploadData" >> "C:\PHP5\setup\install.log") from workdir ()
WINWEB01 : DBG [task:9283736 262:6256:12d8 pleskd ]: [ HCL::HCLtoMPF::exec] Exec returned (1)
In corresponding install.log
the true cause is unveiled:
Just created D:\PHPUploadData
'D:\PHPUploadData' creation faled. Error: 58
Cause
Incorrect permissions on PHP service directory.
Resolution
Rename D:\PHPUploadData
and upgrade PHP package. Then move content from renamed dir to newly created one.