PHP handler can not be installed or removed via Plesk installer. Unable to remove product 'php56' (code '[installed.ProductCode]') with error 87

Created:

2016-11-16 13:21:30 UTC

Modified:

2017-04-24 11:38:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP handler can not be installed or removed via Plesk installer. Unable to remove product 'php56' (code '[installed.ProductCode]') with error 87

Applicable to:

  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows

Symptoms

When accessing Websites and Domains > PHP Settings for any domain the follwoing error is shown:

Error: Domain "example.com": the PHP handler "fastcgi-5.6" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again.

PHP handler can not be removed via Plesk installer with following error:

Unable to remove product 'php56' (code '[installed.ProductCode]') with error 87

or

ERROR: The installation of the package 'php56' failed with code 87. (remove: uninstalling PHP 5.6 script engine...)
Not all packages were installed.
Please, contact product technical support.

Cause

One of IIS handler uses php.ini for version that attempted to be managed.

Resolution

  1. Run procexp.exe as Administrator and find the path to php version that fails to be deleted.

  2. Find the process which is using php version that can not be removed (i.e. phph53 ):

alttext

As shown above it is used by w3wp.exe process which is IIS.

  1. Restart IIS web server by executing the following command in windows command line:

    iisreset
  2. Install/remove required php via Plesk installer:

    "%plesk_bin%"\\ai.exe --console
Have more questions? Submit a request
Please sign in to leave a comment.