Articles in this section

Unable to Reinstall WordPress Core through the WP Toolkit: Couldn't extract WordPress archive. There was an error overwriting existing files.

kb: technical ext: wptk WP-Toolkit

Symptoms

  • In an attempt to press the Reinstall WordPress Core button in Plesk > WordPress > example.com > Check WordPress Integrity, the process fails with the following error message:
     

    PLESK_ERROR: Failed to reinstall WordPress core files
    Warning: Unable to copy 'index.php' to current directory.
    Error: Couldn't extract WordPress archive. There was an error overwriting existing files.
    Downloading WordPress 6.8.1 (en_US)...
    md5 hash verified: be423b1a01430e674e361e7a4d96f19e

Cause

Incorrect permissions for the index.php file of the WordPress site at example.com

Resolution

In order to resolve the issue, set the correct permissions for the index.php file through the following steps:

  1. Connect to the server via SSH.
  2. Execute the command below to set the correct permissions:

    # chmod 644 /var/www/vhosts/example.com/httpdocs/index.php

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.