Application installation failed with "Non-zero exit status returned by script" error.

Created:

2016-11-16 13:09:32 UTC

Modified:

2017-05-02 07:49:42 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Application installation failed with "Non-zero exit status returned by script" error.

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Application installation failed with following error message:

Error: Installation of WordPress at http://domain.tld/wordpress failed. Non-zero exit status returned by script.

After debug log is enabled, you can see the following errors in Plesk log file /usr/local/psa/admin/logs/panel.log

Failed to detect php setting value (safe_mode): Failed to execute request: The requested URL returned error: 500
Failed to detect php extension (mysql): Failed to execute request: The requested URL returned error: 500

or

2014-09-13T21:49:40+02:00 DEBUG (7)  [util_exec]: 0, script = sappmng, version = 1.0, args=--run-application-script --script-file-name=configure --script-name=install --script-language=php --user-name=newplexit11 --application-full-name=file:////opt/psa/var/apspackages/apscatalogvNbN2w.zip34f88ccf-88a2-b4/cache, stdin=
2014-09-13T21:49:40+02:00 ERR (3) [util_exec]: proc_close() failed
2014-09-13T21:49:40+02:00 DEBUG (7) [util_exec]: 0, time = 0.037881851196289, errcode = 1; stderr = ; stdout =
[13-Sep-2014 21:49:40 Europe/Berlin] PleskUtilException: '/opt/psa/admin/bin/sappmng' '--run-application-script' '--script-file-name=configure' '--script-name=install' '--script-language=php' '--user-name=newplexit11' '--application-full-name=file:////opt/psa/var/apspackages/apscatalogvNbN2w.zip34f88ccf-88a2-b4/cache' failed with code 1.

stdout:


stderr:

file: /opt/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 38
code: 0

PHP version: PHP 5.4.4
OS version: Debian/Ubuntu

PHP does not work. When you try to access any PHP pages, one of the following errors appear in the /var/log/apache2/error.log file:

Fatal error:  Directive 'magic_quotes_gpc' is no longer available in PHP in Unknown on line 0

Fatal error:  Directive 'register_long_arrays' is no longer available in PHP in Unknown on line 0

Fatal error:  Directive 'safe_mode' is no longer available in PHP in Unknown on line 0

Cause

Wrong PHP configuration.

Resolution

Comment out the following strings in the /etc/php5/cli/php.ini and /etc/php5/cgi/php.ini files.

magic_quotes_gpc = On
register_long_arrays = On
safe_mode = On
Have more questions? Submit a request
Please sign in to leave a comment.