WordPress installation fails: Non-zero exit status returned by script.

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Created:

2016-11-16 13:10:06 UTC

Modified:

2017-02-22 13:19:40 UTC

1

Was this article helpful?


Have more questions?

Submit a request

WordPress installation fails: Non-zero exit status returned by script.

Symptoms

Wordpress installation on domain fails with the error:

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

On Linux-based systems the following can be found in /var/log/plesk/panel.log :

PleskUtilException: '/usr/local/psa/admin/bin/sappmng' '--run-application-script' '--script-file-name=configure' '--script-name=install' '--script-language=php' '--user-name=dvm01' '--application-full-name=file:////usr/local/psa/var/apspackages/WordPress-3.9-32c3eb5956-c2f6-003e-c/cache' failed with code 1.
stdout:
Unable to execute SQL statement (
DROP TABLE IF EXISTS `wp_links`): Table 'wp_links' was not locked with LOCK TABLES

On Windows the php_error.log contains the following error:

Failed to detect php setting value (safe_mode):

Failed to detect php extension (mysql): Failed to execute request: The requested URL returned error: 500 Internal Server Error

[2015-02-25 16:25:05] PleskUtilException: "C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\sappmng" --run-application-script "--script-filename=configure" "--script-name=install" "--user-name=MediaAdmin" "--application-full-name=file:///C:\\Program Files (x86)\\Parallels\\Plesk\\var\\apspackages\\apsD23B.tmp.zip340af8dc-6ff9-9221-94\\cache" "--fsa-xml-file=C:/Program Files (x86)/Parallels/Plesk/PrivateTemp/fsa16FB.tmp" failed with code


[2015-02-25 16:25:05] ERR [panel] Script execution failed: <br />
<b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>C:\\Program Files (x86)\\Parallels\\Plesk\\var\\apspackages\\apsD23B.tmp.zip340af8dc-6ff9-9221-94\\cache\\scripts\\idna_convert.class.php</b> on line <b>58</b><br />

Cause

  1. In file scripts/schema.sql of Wordpress, there was following piece:
    LOCK TABLES `@@DB_MAIN_PREFIX@@comments` WRITE;
    /*!40000 ALTER TABLE `@@DB_MAIN_PREFIX@@comments` DISABLE KEYS */;
    INSERT INTO `@@DB_MAIN_PREFIX@@comments` (`comment_ID`, `comment_post_ID`, `comment_author`, `comment_author_email`, `comment_author_url`, `comment_author_IP`, `comment_date`, `comment_date_gmt`, `comment_content`, `comment_karma`, `comment_approved`, `comment_agent`, `comment_type`, `comment_parent`, `user_id`) VALUES
    (1, 1, 'Mr WordPress', '', 'https://wordpress.org/', '', now(),now(), 'Hi, this is a comment.\

    To delete a comment, just log in and view the post's comments. There you will have the option to edit or delete them.', 0, '1', '', '', 0, 0);

    -- Table structure for table `@@DB_MAIN_PREFIX@@links`
    DROP TABLE IF EXISTS `@@DB_MAIN_PREFIX@@links`;

There is no " UNLOCK TABLES " option in the end. That is why Wordpress cannot access the table after this part of code.

Resolution

  1. Clear Application cache in Plesk Control panel->Tools and Settings->Application Vault->Clear Cache .
  2. Install new build of Wordpress 3.9-build 33 though Plesk.
Have more questions? Submit a request
Please sign in to leave a comment.