Article ID: 113485, created on Mar 19, 2012, last review on Aug 29, 2014

  • Applies to:
  • Operations Automation 5.x

Symptoms


An APS application installation task fails. The task execution log contains this error: "PHP Notice: Undefined variable: argv in /usr/local/pem/vhosts/100495/webspace/siteapps/124/scripts/configure on line 37" like in the example below:

Task ID    290466
Queue name    domain_service1312
Task name    APS application 'WordPress', id 103, instance 124 : executing configuration script
Task description    APS application 'WordPress', id 103, instance 124 : executing configuration script
Subscription ID    744
Queue status    Rescheduled    
Start not earlier than    Mar-19-2012 12:57
Method name    taskExecuteInstanceControlCommand on SCREF:apache:0
Last execution output    Script execution failed: executing 'env 'WEB__wp-content_DIR=/usr/local/pem/vhosts/100495/webspace/siteapps/124/htdocs/wp-content' 'WEB__wp-config.php_DIR=/usr/local/pem/vhosts/100495/webspace/siteapps/124/htdocs/wp-config.php' 'WEB__tmp_DIR=/usr/local/pem/vhosts/100495/webspace/siteapps/124/htdocs/tmp' 'WEB__blogs_media_DIR=/usr/local/pem/vhosts/100495/webspace/siteapps/124/htdocs/blogs/media' 'WEB___DIR=/usr/local/pem/vhosts/100495/webspace/siteapps/124/htdocs' 'SETTINGS_title=temka local' 'SETTINGS_locale=en-US' 'SETTINGS_admin_password=dHOsrj1W' 'SETTINGS_admin_name=admin' 'SETTINGS_admin_email=mail@domain.tld' 'SERVICE_ID=wordpress' 'PHP_VERSION=5.2.17' 'DB_main_VERSION=5.0.83' 'DB_main_TYPE=mysql' 'DB_main_PASSWORD=dSdyXXdeebtqCEWo' 'DB_main_NAME=db1_sa124_main' 'DB_main_LOGIN=u1_sa124' 'DB_main_HOST=10.39.94.106' 'BASE_URL_SCHEME=http' 'BASE_URL_PATH=/' 'BASE_URL_HOST=blog.domain.tld' 'BASE_IP_ADDRESS=10.39.84.104' /usr/bin/php-cgi -d open_basedir= -q configure 'install'' for APS application instance with id 124 returned value '1' with output '<font color=ff0000>
Notice: Undefined variable: argv in /usr/local/pem/vhosts/100495/webspace/siteapps/124/scripts/configure on line 37
</font>Usage: configure (install | upgrade <version> | configure | remove)
' and errors 'PHP Notice: Undefined variable: argv in /usr/local/pem/vhosts/100495/webspace/siteapps/124/scripts/configure on line 37

'.


Resolution

Make sure that the parameter register_argc_argv is not switched off in the php.ini file on the shared hosting server where the application is being installed.

For a successful application installation, this parameter should be enabled on the web server.
# grep register_argc_argv /etc/php.ini
register_argc_argv = On

2554725ed606193dd9bbce21365bed4e 5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF