Search Engine: Elastic

Article ID: 120323, created on Feb 26, 2014, last review on May 9, 2014

  • Applies to:
  • Plesk Automation 11.5


I am trying to install application, but getting the following error:

Non-zero exit status returned by script. Output stream: 'Content-type: text/html Usage: configure (install | upgrade <version> | configure | remove) '. Error stream: 'Content-type: text/html Usage: configure (install | upgrade <version> | configure | remove) '.


Application installation script cannot get array of arguments passed to script using $argv parameter because register_argc_argv is disabled.


Plesk uses /usr/local/psa/bin/php-cli to run installation scripts, this is a link to the /usr/bin/php binary:

# ls -la /usr/local/psa/bin/php-cli
lrwxrwxrwx 1 root root 12 Jan  7 20:23 /usr/local/psa/bin/php-cli -> /usr/bin/php

By default it should have register_argc_argv option enabled:

# /usr/bin/php -i | grep register_argc_argv
register_argc_argv => On => On

Make sure that it is so, if not then check that /usr/bin/php binary is not modified:

  1. It should belong to the php-cli package:

    # rpm -qf /usr/bin/php
  2. MD5 sum should not be modified (no number "5" in the output below, check link for details):

    # rpm -qVv php-cli-5.3.3-27.el6_5.x86_64 | grep /usr/bin/php
    .........    /usr/bin/php

33a70544d00d562bbc5b17762c4ed2b3 e0aff7830fa22f92062ee4db78133079 caea8340e2d186a540518d08602aa065

Email subscription for changes to this article
Save as PDF