Search Engine: Elastic

Article ID: 126319, created on Jul 24, 2015, last review on Feb 15, 2016

  • Applies to:
  • Plesk Automation 11.5

Symptoms

When trying to install latest update for WordPress in Customer Control Panel on Websites tab, it fails with the error below:

Error: Update failed: Non-zero exit status returned by script. Output stream: 'PHP Warning: require(/var/www/vhosts/example.com/httpdocs/wp-load.php): failed to open stream: No such file or directory in /var/www/vhosts/example.com/httpdocs/wp-admin/upgrade.php on line 18 PHP Fatal error: require(): Failed opening required '/var/www/vhosts/example.com/httpdocs/wp-load.php' (include_path='.') in /var/www/vhosts/example.com/httpdocs/wp-admin/upgrade.php on line 18 '. Error stream: 'PHP Warning: require(/var/www/vhosts/example.com/httpdocs/wp-load.php): failed to open stream: No such file or directory in /var/www/vhosts/example.com/httpdocs/wp-admin/upgrade.php on line 18 PHP Fatal error: require(): Failed opening required '/var/www/vhosts/example.com/httpdocs/wp-load.php' (include_path='.') in /var/www/vhosts/example.com/httpdocs/wp-admin/upgrade.php on line 18 '.

The following files and folders may be removed:

  • wp-load.php
  • wp-settings.php
  • wp-login.php
  • wp-includes/

Because of missing files the website shows blank page.

The errors like below may be found in /usr/local/psa/admin/logs/panel.log on the Management Node:

ERR (3)  [panel]: Application deployment failed: Filesystem error: boost::filesystem::remove: Permission denied: "/var/www/vhosts/example.com/httpdocs/wp-content/plugins/akismet/_inc/akismet.css"(system:13)/usr/local/psa/var/apspackages/WordPress-3.9-33aaed8498-28fd-f0ed-d/cache/htdocs/wp-content/plugins/akismet/_inc/akismet.css -> /var/www/vhosts/example.com/httpdocs/wp-content/plugins/akismet/_inc/akismet.css

ERR (3)  [util_exec]: proc_close() failed

ERR (3)  [panel]: Exception: PHP Warning:  fread(): Length parameter must be greater than 0 in /usr/local/psa/var/apspackages/WordPress-3.9-33aaed8498-28fd-f0ed-d/cache/scripts/file-util.php on line 10

PHP Warning:  require(/var/www/vhosts/example.com/httpdocs/wp-load.php): failed to open stream: No such file or directory in /var/www/vhosts/example.com/httpdocs/wp-admin/upgrade.php on line 18

PHP Fatal error:  require(): Failed opening required '/var/www/vhosts/example.com/httpdocs/wp-load.php' (include_path='.') in /var/www/vhosts/example.com/httpdocs/wp-admin/upgrade.php on line 18

Cause

Since the website is running PHP as Apache module, some plugins and themes installed by WordPress administrator have ownership apache:apache which breaks WordPress update procedure.

Such behaviour has been considered as software issue with id #PPA-2564. The permanent fix which allow to avoid this issue is included in Plesk Automation MU#20.

Resolution

Instructions on installing PA updates available at How to install PA updates.

If the website was broken due to failed WordPress update, please contact Odin Technical Support in order to repair WordPress installation.

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF