Unable to register PHP 4.3.9: Unable to register the PHP handler: can not get version from /usr/local/php4/bin/php

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux

Created:

2016-11-16 12:42:55 UTC

Modified:

2016-12-21 19:02:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to register PHP 4.3.9: Unable to register the PHP handler: can not get version from /usr/local/php4/bin/php

Symptoms

Unable to register PHP4.3.9 as an additional PHP handler.PHP handler registration fails with the following error:

~# /usr/local/psa/bin/php_handler --add-displayname 4.3.9 -path /usr/local/php4/bin/php -phpini /usr/local/lib/php.ini -type cgi

2013-09-25T14:39:09-07:00 ERR (3) [util_exec]: proc_close() failed
Unable to register the PHP handler: can not get version from /usr/local/php4/bin/php

However PHP4.3.9 does appear to be installed correctly:

~# /usr/local/php4/bin/php -v
PHP 4.3.9 (cgi-fcgi) (built: Sep 26 2013 10:28:09)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Cause

The issue is caused by the PHP source code - when checking version it was written to return 'error' exit codes - exit(1) - at any time.

Fix was implemented in PP11.5 MU#24

Resolution

Make sure the latest product update is installed:

# /usr/local/psa/admin/bin/autoinstaller --select-product-id panel  --select-release-current    --reinstall-patch --install-component base
Have more questions? Submit a request
Please sign in to leave a comment.